PagingToolBar Move to specific page

  1. #1

    PagingToolBar Move to specific page

    Hi.
    I'm using PagingToolBar to handle a formview.

    I can use PagingToolBar.MoveFirst and PagingToolBarMoveLast and all work fine.
    But how can I move to a specific page (within the PagingToolBar), using as input the recordID or other parameters. I tried PagingToolBar.Move(oldIndex, newIndex) but I can't reach the goal.

    Thanks.
    Stefano
  2. #2
    You can use LoadPage method of Store

    Demonstration of 'loadPage' (client side) can be found in the following sample (Find 'Government Motors' button)
    https://examples2.ext.net/#/GridPane...l_Data_Paging/
  3. #3
    Thanks.
    It works.

    But now I have to get the store index using the find function from codebehind

     
    var find = testata_schede_attive_store.Find("FieldName", "FieldValue");
                 if (find != -1) {
                 var record = testata_schede_attive_store.GetAt(find);
                    // do stuff with record
                }
    I expect to get "find" variable as an integer in order to put it in GetAt parameter. Where am I wrong?

    Thanks
    Stefano



    Quote Originally Posted by Vladimir View Post
    You can use LoadPage method of Store

    Demonstration of 'loadPage' (client side) can be found in the following sample (Find 'Government Motors' button)
    https://examples2.ext.net/#/GridPane...l_Data_Paging/

Similar Threads

  1. Replies: 2
    Last Post: Apr 11, 2012, 2:15 PM
  2. [CLOSED] PagingToolbar last page
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 05, 2012, 10:01 AM
  3. Number of page in PagingToolbar
    By Dominik in forum 1.x Help
    Replies: 1
    Last Post: Dec 16, 2010, 12:16 PM
  4. Move a window when the page is scrolled
    By fquintero in forum 1.x Help
    Replies: 0
    Last Post: Nov 23, 2009, 6:16 PM
  5. [CLOSED] Move Window in viewport to entire page
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 06, 2008, 6:48 AM

Tags for this Thread

Posting Permissions