Page 10 of 29 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 285

Thread: Ext.ux.data.PagingStore [v0.5]

  1. #91
    Ext User calabacita's Avatar
    Join Date
    Feb 2010
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Thanks a lot Condor, for your reply!!!

    On the success event in the submit, I changed some things:

    Code:
    //instead of create a new object.
    result.loadData(Ext.util.JSON.decode(request.response.responseText));
    
    paging.bindStore(busquedaGrid.getStore());
    busquedaGrid.footer = paging;
    busquedaGrid.render();
    busquedaGrid.getView().refresh();
    Now, the grid and the pagingToolbar run correctly

  2. #92
    Ext User
    Join Date
    Nov 2009
    Posts
    56
    Vote Rating
    0
      0  

    Default

    Hi,

    I changed this

    Code:
    stores[t] = new Ext.data.JsonStore({
                url: 'creategrid5.php?action=listing&type='+ t,
                //storeId: 'wstore',
                root: 'rows',
                listeners: {
                    metachange: function(store, meta) {
                        var g = grids[t];
                        var cm = g.getColumnModel();
                        cm.setConfig(meta.colModel);
                        g.reconfigure(store, cm);
    
                    }
                }
        });
    to this:

    Code:
    stores[t] = new Ext.ux.data.PagingArrayStore({
                url: 'creategrid5.php?action=listing&type='+ t,
                //storeId: 'wstore',
                autoLoad: {params: {start: 0, limit: 10}},
                reader: new Ext.data.JsonReader(),
                listeners: {
                        metachange: function(store, meta) {
                            var g = grids[t];
                            var cm = g.getColumnModel();
                            cm.setConfig(meta.colModel);
                            g.reconfigure(store, cm);
                        }
                }           
        });
    And now my grid does not show anything.
    Any idea what went wrong?
    I am using metadata to populate the grid.

    Thanks!

    ----------------------------- Edit----------------------------------

    Nvm, ignore my stupidity.
    Did it with Ext.ux.data.PagingJsonStore.

    Thanks!!!!

  3. #93
    Ext User
    Join Date
    Oct 2008
    Location
    Milan, Italy
    Posts
    1
    Vote Rating
    0
      0  

    Default

    In ext 3.1 final should be something like this ...

    Code:
    Ext.override(Ext.PagingToolbar, {
        doRefresh: function(){
            delete this.store.lastParams;
            this.doLoad(this.cursor);    
        }
    });
    gr8 job anyway, you have saved my day

  4. #94
    Ext User
    Join Date
    Apr 2008
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Just upgraded to Ext 3.2.0, and noticed that sort is broken as multi-sort was introduced in 3.2.0. My quick and dirty fix is to change the signature of the method to not accept any arguments, and set the required arguments as follows:

    Code:
    sortData: function() {
        var direction = this.sortInfo.direction || "ASC"
            f = this.sortInfo.field;
    Obviously the code won't work with multi-sort, but works well enough for my own use.

  5. #95
    Sencha Premium Member
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    330
    Vote Rating
    1
      0  

    Default

    Same problem for me. Updated to 3.2 and the PagingToolbar sort doesn't work anymore. Would be nice, if it could be fixed

  6. #96
    Ext JS Premium Member
    Join Date
    Mar 2010
    Location
    Barcelona
    Posts
    33
    Vote Rating
    1
      0  

    Default

    I'm having the same issue with sorting and 3.2.

    any plans for an update?

    Thanks!

  7. #97
    Sencha User Remy's Avatar
    Join Date
    Apr 2008
    Posts
    306
    Vote Rating
    0
      0  

    Default

    Fabulous ux, as always, good work Condor.

  8. #98
    Sencha User
    Join Date
    Feb 2009
    Posts
    4
    Vote Rating
    0
      0  

    Default Possible 3.2.x update

    Quote Originally Posted by elizard View Post
    Just upgraded to Ext 3.2.0, and noticed that sort is broken as multi-sort was introduced in 3.2.0. My quick and dirty fix is to change the signature of the method to not accept any arguments, and set the required arguments as follows:

    Code:
    sortData: function() {
        var direction = this.sortInfo.direction || "ASC"
            f = this.sortInfo.field;
    Obviously the code won't work with multi-sort, but works well enough for my own use.
    You could also try this, which uses the base Ext.data.Store code after taking care of PagingStore-specific additions:

    Code:
    sortData: function {
        if (this.allData) {
            this.data = this.allData;
            delete this.allData;
        }
        Ext.data.Store.prototype.sortData.call(this);
        this.applyPaging();
    }

  9. #99
    Sencha User
    Join Date
    Nov 2008
    Posts
    47
    Vote Rating
    0
      0  

    Default

    Great Stuff Condor!

    Can the paging store be used with the grouping store?

  10. #100
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    You would need a PagingGroupingStore (code somewhere in this thread).

    However, it's use is limited, because it can span groups over multiple pages.

Page 10 of 29 FirstFirst ... 8910111220 ... LastLast

Posting Permissions

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