Rank: Member Groups: Member
Joined: 5/15/2012 Posts: 18
|
Hi,
I have a grid with many rows. I need to search for an item in a row and set the position of the row to the top of the grid. It is impossible for the user to scroll down until they find the row that they want.
Is it possible to do this an if so could you provide me with a snippet (script)
Thanks in advance
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, I believe you can call this method to ensure an item is visible: http://www.essentialobjects.com/doc/1/jsdoc.public.griditem.ensurevisible.aspxIt will be something like this:
Code: JavaScript
eo_GetObject("Grid1").getItem(item_index).ensureVisible();
Thanks!
|
Rank: Member Groups: Member
Joined: 5/15/2012 Posts: 18
|
many thanks, that works
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
You are very welcome. Please feel free to let us know if there is anything else.
Thanks!
|