Rank: Member Groups: Member
Joined: 4/6/2008 Posts: 11
|
Hi,
How do I set a session variable from a grid selected item Cell(0)?
Can I set the focus to the selected item index of a grid if I unhide the div where the grid is contained?
Thanks in advance.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, you can use this function to set focus to a Grid cell on the client side: http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Grid.selectCell.htmlFor example:
The server side equivalent is: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.SelectedItemIndex.htmlhttp://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.SelectedCellIndex.htmlAnd this function to get the cell value on the client side: http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.GridCell.getValue.htmlFor example:
Code: C#
var cellValue = Grid1.getItem(1).getCell(0).getValue();
The server side equivalent is: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.GridCell.Value.htmlSetting session variable would be something that is unrelated to our product thus it is out of the scope of our support. Please consult other resource for that. Sorry about it! Thanks
|