Welcome Guest Search | Active Topics | Sign In | Register

Setting the top row in a grid Options
mike
Posted: Monday, September 23, 2013 8:44:24 AM
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
eo_support
Posted: Monday, September 23, 2013 1:53:04 PM
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.aspx

It will be something like this:

Code: JavaScript
eo_GetObject("Grid1").getItem(item_index).ensureVisible();


Thanks!
mike
Posted: Wednesday, September 25, 2013 1:47:29 AM
Rank: Member
Groups: Member

Joined: 5/15/2012
Posts: 18
many thanks, that works
eo_support
Posted: Wednesday, September 25, 2013 9:30:52 AM
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!


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.