Mar 27, 2014, 4:05 PM
[CLOSED] Grid store Previous Page callback function
I have a remotely paged gridpanel that when clicked, loads a panel with additional information. In that panel, I have a next and previous button that allows you to navigate the gridpanel without clicking a row. When the end of the page is reached, it loads the next page and selects the first item on the page. I'd like to have the reverse done when clicking previous on the first item on a page.(IE Load previous page and select the last item on it.) The NextPage method has an option for a callback, where I can select the row, like this.
GridStore.NextPage(new{
callback = JRawValue.From("function() {App.GridStore.getSelectionModel().select(0)}")
});
I don't see a similar ability with the PreviousPage method. Any suggestions?
Last edited by Daniil; Apr 03, 2014 at 4:10 AM.
Reason: [CLOSED]