Welcome Guest Search | Active Topics | Sign In | Register

Grid running in Callback mode Options
huiko
Posted: Tuesday, December 28, 2010 3:47:50 PM
Rank: Member
Groups: Member

Joined: 12/15/2010
Posts: 12
Hi gents/ladies.
Marry christmas!
I have 3 grids. Grid1 is in client running mode, Grid2 and Grid3 are in callback running mode.
I set Loading HTML property of Grid2 and Grid3.
On cliend side event OnItemSelected of the first grid i call
grid2.raiseItemCommandEvent(-1, "nevermind");
grid3.raiseItemCommandEvent(-1, "nevermind");
but only grid2 displays Loading HTML code and is updated.
Where is my mistake, can I call raiseItemCommandEvent for both grids consistently?

eo_support
Posted: Tuesday, December 28, 2010 3:54:38 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Happy holidays! What you noticed is normal. You can not have multiple postback/callback going on at the same time. When you call grid2.raiseItemCommandEvent, it starts the callback but returns immediately. When grid3.raiseItemCommandEvent is called, it sees a callback is already pending, so it does nothing and returns immediately.

If you wish to update both Grids at the same time, you can put them inside a CallbackPanel and then trigger the callback on the CallbackPanel. That way it will reload everyhting inside the CallbackPanel within a single callback.

Thanks!
huiko
Posted: Tuesday, December 28, 2010 3:58:35 PM
Rank: Member
Groups: Member

Joined: 12/15/2010
Posts: 12
Thank you very much. That satisfies me.
Happy holidays.


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.