Welcome Guest Search | Active Topics | Sign In | Register

Grid Raise PageIndexChanged from Javascript Options
Fred
Posted: Wednesday, October 7, 2009 4:57:59 PM
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...
eo_support
Posted: Wednesday, October 7, 2009 5:08:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
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.aspx

The 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!
Fred
Posted: Wednesday, October 7, 2009 5:09:22 PM
Rank: Newbie
Groups: Member

Joined: 10/7/2009
Posts: 2
I think I figured it out by raising the raiseItemCommandEvent...
eo_support
Posted: Wednesday, October 7, 2009 5:22:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Great. Thanks for the update!


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.