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?
|
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!
|
Rank: Member Groups: Member
Joined: 12/15/2010 Posts: 12
|
Thank you very much. That satisfies me. Happy holidays.
|