PDA

View Full Version : [CLOSED] Grid store Previous Page callback function



ljankowski
Mar 27, 2014, 5:05 PM
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?

Daniil
Mar 28, 2014, 2:28 AM
Hi @ljankowski,

Thank you for the report. An overloaded PreviousPage method taking an options object has been added to the trunk, the revision #5738.