|
Rank: Newbie Groups: Member
Joined: 10/7/2009 Posts: 2
|
I am trying to implement my own pager outside of the grid. I would like to envoke the PageIndexChanged event my pager (using Javascript) to take advantage of the performance benefit of the Callback running mode. I can acomplish this by putting the grid in a Callback panel, but it is much slower.
Is there anyway of doing this?
Thanks for the help...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Hi, I am not sure if I understand your question correctly. If you have your own pager and you would like to switch the Grid to another page with JavaScript, you would call the Grid's goToPage method: http://doc.essentialobjects.com/library/1/jsdoc.public.grid.gotopage.aspxThe code should be something like this:
Code: JavaScript
//Get the grid object
var grid = eo_GetObject("Grid1");
//Go to the second page
grid.goToPage(1);
I am not sure whether this is what you are asking about though. Please let us know. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/7/2009 Posts: 2
|
I think I figured it out by raising the raiseItemCommandEvent...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Great. Thanks for the update!
|
|