Welcome Guest Search | Active Topics | Sign In | Register

Grid callback running mode and partial postbacks Options
infoland
Posted: Thursday, December 15, 2011 1:35:57 PM
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
eo_support
Posted: Thursday, December 15, 2011 3:46:45 PM
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!
infoland
Posted: Friday, December 16, 2011 7:57:37 AM
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
eo_support
Posted: Friday, December 16, 2011 9:14:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great point. Thank you very much for your feedback!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.