Welcome Guest Search | Active Topics | Sign In | Register

Grid edit excel style and detail data Options
Hub
Posted: Monday, March 28, 2011 8:35:33 AM
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
Hub
Posted: Monday, March 28, 2011 8:38:43 AM
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
eo_support
Posted: Monday, March 28, 2011 10:57:46 AM
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.aspx

Thanks!
Hub
Posted: Monday, March 28, 2011 11:36:17 AM
Rank: Advanced Member
Groups: Member

Joined: 3/16/2010
Posts: 101
Perfect, thank you!


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.