Results 1 to 2 of 2

Thread: Problem with Ext.PagingToolbar method moveLast

  1. #1
    Sencha User
    Join Date
    Aug 2010
    Posts
    4

    Default Problem with Ext.PagingToolbar method moveLast

    Hi All!

    I have a Ext.grid.EditorGridPanel populated from database, and use Ext.PagingToolbar to make a pagination.

    The problem is at first time displaying the grid I need select last page

    here how I try it:
    PHP Code:
    ListingEditorGrid =  new Ext.grid.EditorGridPanel({
            
    id'ListingEditorGrid',
            
    storeDataStore,
            
    cmColumnModel,
            
    region'north',
            
    layout'fit',
            
    height:250,
            
    enableColLock:false,
            
    clicksToEdit:2,
            
    selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
            
    bbar: new Ext.PagingToolbar({
                
    pageSize20,
                
    storeDataStore,
                
    displayInfotrue
            
    })
        });
    Window = new Ext.Window({
            
    id'Window',
            
    title'History',
            
    closable:true,
            
    width700,
            
    height400,
            
    plain:true,
            
    layout'fit',
            
    closeAction'hide',
            
    autoDestroyfalse,
            
    itemsListingEditorGrid
        
    });
    /*Now we display Window with the grid and try to set last Page */

    DataStore.load({params: {subtask"LISTING"myidMyID }});
    Window.show();

    ListingEditorGrid.getBottomToolbar().moveLast(); 
    The result is empty page #0 in grid with 4 pages. The logs of Apache says that it sends parameters
    to server like: "start=-20&limit=20" and this is confusing me.

    BTW using methods:
    ListingEditorGrid.getBottomToolbar().moveFirst();
    ListingEditorGrid.getBottomToolbar().moveNext();
    etc works as expected.

    If someone can tell is it a bug or my mistake on the way?

    thanks

  2. #2

    Default

    I'm have this problem davion. Have you ever found the fix to it? Can anyone help us?

Similar Threads

  1. pagingToolbar not working with method GET
    By cameron.mccloud in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 28 Nov 2008, 7:58 AM
  2. PagingToolBar: extension - add public method - goToPage()
    By [email protected] in forum Ext 2.x: User Extensions and Plugins
    Replies: 6
    Last Post: 22 Oct 2007, 8:05 AM
  3. MoveNext,MoveLast with datastore Object, How?
    By kamelus in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 15 Aug 2007, 2:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •