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

[Solved] Showing a modal Dialog during Ajax action

4 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Reid
Top achievements
Rank 2
Reid asked on 12 Apr 2012, 12:54 PM
Hi all,

I have a grid using Ajax where the query takes a while to return.  I would like to show a modal dialog (window) showing a progress bar or something to indicate to the user that the process is underway.  

Is it possible to have a dialog do this with some sort of callback handler or event handler that would recieve the message that the data has arrived and dissolve?

Any suggestions would be appreciated.


Thanks,

Reid

4 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 16 Apr 2012, 03:46 PM
Hi Reid,

In such scenarios you should use the combination of the OnDataBinding event and the OnDataBound events. On the first one you open the window with the animation and on the second one you close it.

Kind Regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Reid
Top achievements
Rank 2
answered on 17 Apr 2012, 02:36 PM
Ok thanks Petur,

Are there any links you can provide that demonstrate this?

Reid
0
Accepted
Petur Subev
Telerik team
answered on 18 Apr 2012, 08:20 AM
Hi Reid,

All the needed events are demonstrated in this Grid online demo. Also this demo demonstrates the window API functionality you asked.

Kind regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Reid
Top achievements
Rank 2
answered on 18 Apr 2012, 04:04 PM
Appreciated!
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Petur Subev
Telerik team
Reid
Top achievements
Rank 2
Share this question
or