Page 1 of 1
is the any busy indicator control (built in or with javascript) ?
Posted: Tue Aug 30, 2016 11:09 am
by Sesztak
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
Re: is the any busy indicator control (built in or with javascript) ?
Posted: Tue Aug 30, 2016 12:37 pm
by JS-Support @Userware
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
Re: is the any busy indicator control (built in or with javascript) ?
Posted: Tue Aug 30, 2016 1:11 pm
by Sesztak
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
Re: is the any busy indicator control (built in or with javascript) ?
Posted: Thu Sep 15, 2016 7:05 am
by JS-Support @Userware
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
Re: is the any busy indicator control (built in or with javascript) ?
Posted: Thu Sep 15, 2016 7:58 am
by Sesztak
Thanks, goog idea.
Anyway, have you tried our solution already ?
best regards,
Péter