Rank: Advanced Member Groups: Member
Joined: 3/16/2010 Posts: 101
|
Hi,
I have a main grid and a detail one (say for example classes and list of students), each inside a callbackpanel. The two grids are "fullrowmode=false and allownewitem=true". In this mode, they function exactly as I want them to.
The problem is I cannot find the right event to update the "student" grid when the user selects a cell in the "Classes" grid (clicking on a cell in a different row). I tried using ClientSideOnItemSelected to explicitly call the "students" callbackpanel, but the selected cell then exits the edit mode (is this normal behavior or do I have a "classes" callbackpanel trigger somewhere I have not found?). I guess I am looking for the cell equivalent to the clientSideBeforeEditItem event...
Is there a way to update the "students" grid just before editing a cell in the "Classes" grid in excel style editing mode?
Thanks for your help
H
|
Rank: Advanced Member Groups: Member
Joined: 3/16/2010 Posts: 101
|
Hi again,
Sorry, my preceeding post is not accurate. I did actually tried to use the ClientSideONCELLSelected event (Since I am not in fullrowmode).
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, It is normal for the Grid to exit edit mode when you trigger a callback because the callback needs the Grid to be in "stable" state so that it can collect the grid's state data. What you can do is to handle the CallbackPanel's ClientSideAfterUpdate and then call this function to put the cell back into edit mode again: http://doc.essentialobjects.com/library/1/jsdoc.public.grid.editcell.aspxThanks!
|
Rank: Advanced Member Groups: Member
Joined: 3/16/2010 Posts: 101
|
Perfect, thank you!
|