|
Rank: Member Groups: Member
Joined: 11/15/2011 Posts: 24
|
Hello. I'm trying to find a way to know when an AJAX partial postback has completed, from client-side perspective. I was supposing to find a "ClientSide-on-something" grid client event, but no luck.
My scenario is the following: The grid is inside a dialog. When the dialog is accepted, grid.raiseItemCommandEvent(-1, 'save') is invoked, so server code is executed to save grid items. After the subsequent partial postback I need to refresh some client-side UI but don't know when it has completed. Any suggestion? Preferably, not using a CallbackPanel.
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I do not believe there is a way for you to be notified when the Grid is done AJAX updating. If you use a CallbackPanel, then you can use the CallbackPanel's ClientSideAfterUpdate for that purpose. However if you use the Grid's built-in Callback mode, then there is no way to do that.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/15/2011 Posts: 24
|
That's the only way: I used a CallbackPanel but keeped Callback running mode for speed purposes. It seems to work.
Nevertheless, let me pose a request to implement a ClientSideUpdateCompleted event in a future release of EO grid, I think will be useful.
Thank you
Cheers
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great point. Thank you very much for your feedback!
|
|