This is a migrated thread and some comments may be shown as answers.

Make a screen "modal" until long running function completes

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mitchell
Top achievements
Rank 1
mitchell asked on 20 Sep 2010, 06:21 PM

We're creating an application that is similar to the webmail demo

http://demos.telerik.com/webmail/

When the user clicks on tree folders, there is a webservice that is called that will update the upper right side frame.

The problem is: The user might change their mind and click on a several different folder before the first request is loaded.   Thus resulting in the webservice calls being stacked up.

If we were developing a Win32 forms application we would just execute this code


Cursor.Current = Cursors.WaitCursor; 


Before running the webservice, and clear it when the results are returned.

http://www.csharp-examples.net/hourglass-wait-cursor/

Question 1: Is there a built-in way to accomplish this functionality with telerik AJAX controls?

If not:

There are several ways to accomplish this in javascript

This method  http://www.webcodingtech.com/javascript/change-cursor.php 
Simply changes the cursor style to wait.

This method http://raventools.com/blog/2911/create-a-modal-dialog-using-css-and-javascript
Places a layer over the entire screen and sets its z-index: to a large number. This has the effect of eating up all of the clicks before the underlying controls can get them.

Question 2: What is the best way to build a custom javascript solution that works best with telerik?


1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 21 Sep 2010, 11:14 AM
Hi mitchell,

To achieve your goal, you can show a RadAjaxLoadingPanel onver the whole screen. Here is a help topic describing how to implement it:
http://www.telerik.com/help/aspnet-ajax/ajxcenterloadingpanel.html

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista"
  IsSticky="true" style="position:absolute; top:0; left:0; height:100%; width:100%;">
</telerik:RadAjaxLoadingPanel>

Give it a try and let me know if it helps.

Sincerely yours,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
mitchell
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or