is the any busy indicator control (built in or with javascript) ?

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

is the any busy indicator control (built in or with javascript) ?

Postby Sesztak » Tue Aug 30, 2016 11:09 am

Dear JS-Support,

is the any busy indicator control (built in or with javascript) what you could recommend?

thanks in advance,
best regards,
Péter

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: is the any busy indicator control (built in or with javascript) ?

Postby JS-Support @Userware » Tue Aug 30, 2016 12:37 pm

Hi,

The busy indicator control will be implemented soon. In the meantime, you can implement one using code similar to this one:

Code: Select all

// Create a popup.
var p = new Popup();
           
// Set the Child property of Popup to an animation or just some text:
p.Child = new TextBlock() { Text = "Please wait...", HorizontalAlignment=HorizontalAlignment.Center, VerticalAlignment=VerticalAlignment.Center };

// Show the popup.
p.IsOpen = true;

// Do your operation here...

// When you have finished, hide the popup:
p.IsOpen = false;


Note: starting from Beta 9.2, to display a full-screen popup like the one above, you will need to specify explicitly:
p.HorizontalContentAlignment = HorizontalAlignment.Stretch;
p.VerticalContentAlignment = VerticalAlignment.Stretch;

You can make the background darker by surrounding the TextBlock with a Border that has a semi-transparent background, like: Background="#44000000"

Regards,
JS-Support

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: is the any busy indicator control (built in or with javascript) ?

Postby Sesztak » Tue Aug 30, 2016 1:11 pm

Dear JS-Support,
really thanks for your quick & kind relpy.

Frankly speaking, we do not prefer popup & full screen like busy indicator (we used it in the past with Telerik controls):
it's too annoying for users (because of it's blinky/flashing effect).

We prefer iOS like discrete busy indicator / spinner.

So, our problem is:
we would like to use it with WCF calls during wait time (unfortunately: this WCF calls already implemented with NON-Async, blocking calls).

So, our question: is there an easy way to do it with separate Thread (spinning control in an another thread and fresh UI thread from background) ?

or

do it by solution coming from HTML5/JS world?

Another say: to make a busy indicator spinner which is not blocked even if main UI thread is blocked ?

Thanks for your kind reply,
Best Regards,
Péter

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: is the any busy indicator control (built in or with javascript) ?

Postby JS-Support @Userware » Thu Sep 15, 2016 7:05 am

For reference, this is the link to your own solution for other people who might need it: http://forums.cshtml5.com/viewtopic.php?f=7&t=7496

Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

Re: is the any busy indicator control (built in or with javascript) ?

Postby Sesztak » Thu Sep 15, 2016 7:58 am

Thanks, goog idea.

Anyway, have you tried our solution already ?

best regards,
Péter


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 25 guests