[CLOSED] Grid store Previous Page callback function

  1. #1

    [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]
  2. #2
    Hi @ljankowski,

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

Similar Threads

  1. UserControl callback page
    By miguel in forum 1.x Help
    Replies: 3
    Last Post: Aug 09, 2013, 3:58 AM
  2. Replies: 3
    Last Post: Sep 26, 2012, 11:32 PM
  3. Create new Window with Callback function
    By vucuongkg in forum 1.x Help
    Replies: 3
    Last Post: Apr 20, 2012, 7:19 AM
  4. BACKSPACE key redirects a page to previous page
    By vs.mukesh in forum 1.x Help
    Replies: 1
    Last Post: Mar 25, 2011, 8:27 AM
  5. ajax request failure callback function help
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Apr 30, 2010, 9:52 AM

Posting Permissions