Results 1 to 3 of 3

Thread: Easy problem . Grid Store Pagination

  1. #1
    Sencha Premium Member jamesjara's Avatar
    Join Date
    Apr 2009
    Location
    costa rica
    Posts
    62

    Exclamation Easy problem . Grid Store Pagination

    hI.. well my english is not very good, i think this i called lazy or nested.. I want all elements in one..
    Gridpanel <-cm <- paginator <- Store etc
    I DONT WANT THIS
    var store = ...
    var paginator = ..
    var grid (store , paginator )

    I WANT/I HAVE this

    Code:
    var $grid_id_hash = new Ext.grid.GridPanel({      
    width: 600,
    height: 330 ,
    layout : 'fit',
     plugins: new Ext.ux.grid.RowEditor ...............
     cm: new Ext.grid.ColumnModel ......
    
    here the problem
    bbar: new Ext.PagingToolbar({
    ...
    store: this.store ,  <- the store is undefinided  , HOW CAN I FIX THIS?
    ...
    }), 
    store: new Ext.data.Store .....
    });
    SB.... will see

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    This is just javascript. You are going to have to hold a reference to the Store because it needs to be referenced in two config objects. No way round it.

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    You could create a GridPagingToolbar that gets the reference to the store from it's parent grid.

Posting Permissions

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