Page 2 of 29 FirstFirst 123412 ... LastLast
Results 11 to 20 of 284

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

  1. #11
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,676
    Vote Rating
    9
      0  

    Default

    Hi Condor,

    Many thanks for the Ext! This is exactly what i needed after struggling with huge xml file.

    Here it's in action:
    http://dev.sk-typo3.de/cetest/svn-log.html
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  2. #12
    Ext User
    Join Date
    Mar 2008
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by Condor View Post
    Good catch. I adjusted the first post.
    You missed out the change from
    Code:
    onRefreshClick
    to
    Code:
    refresh
    Ext.PagingToolbar doesnt have a onRefreshClick function.

    I also found another bug,
    Code:
    destroy: function() {
            if (this.storeId) {
                Ext.PagingStoreMgr.unregister(this);
            }
            this.data = this.allData = this.snapshot = null;
            Ext.destroy(this.proxy);
            this.reader = this.writer = null;
            this.purgeListeners();
        },
    should be

    Code:
    destroy: function() {
            if (this.storeId) {
                Ext.StoreMgr.unregister(this);
            }
            this.data = this.allData = this.snapshot = null;
            Ext.destroy(this.proxy);
            this.reader = this.writer = null;
            this.purgeListeners();
        },

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

    Default

    Both fixed.

  4. #14
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    5
    Vote Rating
    1
      0  

    Default grouping compatible version of PagingStore

    Hi:

    Are there any plans to make a grouping compatible version of this?

    Or, any pointers on how you might go about providing client-side paging with/grouping?


    Thanks,

    Lee Wexler

  5. #15
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    5
    Vote Rating
    1
      0  

    Default grouping compatible version of PagingStore

    Just saw your comment in the 2.0 thread, re: grouping. I will try it.

    Sorry for the noise, and thanks for this!

  6. #16
    Sencha User
    Join Date
    Jun 2009
    Posts
    34
    Vote Rating
    0
      0  

    Thumbs up grouping compatible version of PagingStore

    The Grouping Store variant worked for me as well with Ext-JS 3.0 PagingStore.

    Code:
    Ext.ux.data.PagingGroupingStore = Ext.extend(Ext.ux.data.PagingStore, {
            remoteGroup: Ext.data.GroupingStore.prototype.remoteGroup,
            groupOnSort: Ext.data.GroupingStore.prototype.groupOnSort,
        clearGrouping: Ext.data.GroupingStore.prototype.clearGrouping,
        groupBy: Ext.data.GroupingStore.prototype.groupBy,
        applySort: Ext.data.GroupingStore.prototype.applySort,
        applyGrouping: Ext.data.GroupingStore.prototype.applyGrouping,
        getGroupState: Ext.data.GroupingStore.prototype.getGroupState
    });
    Thanks!

  7. #17
    Sencha User
    Join Date
    Aug 2008
    Posts
    34
    Vote Rating
    1
      0  

    Default

    This is great add-on.

    Thanx!!!

  8. #18
    Sencha Premium Member
    Join Date
    May 2008
    Posts
    24
    Vote Rating
    0
      0  

    Default In 3.0, PagingStore and GridFilter cuase problem in PagingToolbar

    I am using the newest PagingStore v0.4 and gridFilter 0.2.8. I have problems on the paging toolbar.

    Two problems I've noted:
    1. Page count always keeps the same as well as total records count on the paging toolbar.
    2. Store shows current empty page instead of navigating to 1st page (if I filter 1 record for example)

    Should I fire some event? where do I fire?

    thanks

  9. #19
    Sencha Premium Member
    Join Date
    May 2008
    Posts
    24
    Vote Rating
    0
      0  

    Default another page nation problem

    let's say I have 3 total pages. Currently, I am in page 2.
    I click the refresh button which I override

    Ext.override(Ext.PagingToolbar, {
    // private
    refresh: function(){
    this.store.loadData(newObj);
    }
    });

    the grid reloads and show the correct records of the second page since i di not change the lastoptions.start and limit. However, the paging toolbar shows I am in page 1.

    I must miss something between the page store and page toolbar. Can some one please help me. thx

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

    Default

    loadData will fire a load event without start and limit parameters, making the PagingToolbar think it is on the first page.

    Instead of loadData try:
    Code:
    var r = store.reader.readRecords(data);
    store.loadRecords(r, Ext.apply({}, store.lastOptions), true);

Page 2 of 29 FirstFirst 123412 ... 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
  •