Welcome Guest Search | Active Topics | Sign In | Register

Grid ClientSideOnItemSelected to session variable Options
nomo
Posted: Sunday, April 6, 2008 7:04:30 PM
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.
eo_support
Posted: Sunday, April 6, 2008 7:14:45 PM
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.html

For example:

Code: JavaScript
Grid1.selectCell(1, 2);


The server side equivalent is:
http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.SelectedItemIndex.html
http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Grid.SelectedCellIndex.html

And this function to get the cell value on the client side:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.GridCell.getValue.html

For 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.html

Setting 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


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.