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

[Solved] Delay when opening Telerik window from DataBind event

0 Answers 87 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.
Chris Neave
Top achievements
Rank 1
Chris Neave asked on 15 Jun 2012, 11:05 AM
I am using the window control with an Ajax bound Telerik MVC grid to display a nice modal "Loading..." message whilst the grid is busy.  I am doing this by calling $("#loadingWin").data("tWindow").open() from the onDataBinding event of the grid and then closing it in the onDataBound event handler.

My grid is in client operation mode and if the user sorts by a column you get a pair of data binding/data bound events raised - and I would like the window displayed whilst the sort is taking place.  The problem is the window doesn't appear immediately and then flashes up at the end.  I think the sort processing happens and then the window is displayed afterwards.  As far as I can figure out the onDataBinding event is raised immediately, so maybe the window.open() call gets queued and isn't actioned until after the sort has finished?

Have you any ideas how to get the window to display immediately?

Many thanks
Tags
Grid
Asked by
Chris Neave
Top achievements
Rank 1
Share this question
or