|
Rank: Member Groups: Member
Joined: 4/29/2009 Posts: 13
|
Hi,
I am running my Grid Clientside. Is there a way to trap the selected row index? I am looking for an equivalent to the ClientSideOnItemSelected to be used in my C# code.
Thanks Chris
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, I don't think there is one. :) The closest is this property: http://doc.essentialobjects.com/library/1/eo.web.grid.selecteditemindex.aspxYou can probably try to save the previous value into view state and then when the page comes back, check the new value against the previous saved value. If they are not the same, then carry out whatever logic you would like to trigger by this situation. Thanks!
|
|
Rank: Member Groups: Member
Joined: 4/29/2009 Posts: 13
|
Thanks for the suggestion.
I thnk I found a quicker way.
I wired-up the ClientSideOnItemSelected to a javascript function which gives me the item index From there I then invoke the event
grid.raiseItemCommandEvent(index, "DUMMY");
This then fires on the C# side and I trap the event Grid_ItemCommand which carries the Item.Index in the GridCommandEventArgs!
Cheers Chris
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Nice work. :) Yes. That will do it!
|
|