Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2009
    Posts
    17
    Vote Rating
    0
    damon1977 is on a distinguished road

      0  

    Default [OPEN-1189] remote grouping grids refresh twice on group by click

    [OPEN-1189] remote grouping grids refresh twice on group by click


    This probably isn't very noticeable until you have different values returned from the server for a field depending on whether or not it's grouped.

    For example, and in my case, if my grid is not grouped by the project field, the value for the project field may be '3 Projects', but if it is grouped by the project field, the server returns 3 records instead of one, each with it's own project value (the name of the project). The objective is to show the same record 3 times in the grid, once in each of the 3 different groups.

    The grid refreshes before the server returns the data, causing it to group on the value '3 Projects', which is not correct. Once the server data is returned it refreshes again with the correct group field values.

    I'm not sure of the BEST way to fix this, but here is what I did...

    Code:
    view = new Ext.grid.GroupingView({
        groupTextTpl: '{text} ({[values.rs.length]} {[values.rs.length > 1 ? "Documents" : "Document"]})',
        hideGroupedColumn: true,
    
        //Fix for remote grouping causing view to refresh twice
        onGroupByClick : function(){
            this.enableGrouping = true;
            this.grid.store.groupBy(this.cm.getDataIndex(this.hdCtxIndex));
            this.grid.fireEvent('groupchange', this, this.grid.store.getGroupState());
            this.beforeMenuShow(); // Make sure the checkboxes get properly set when changing groups
            if (!this.grid.store.remoteGroup) this.refresh(); //Don't refresh now, store load event will cause refresh
        },
    });
    Last edited by damon1977; 9 Aug 2010 at 11:42 AM. Reason: Specify Ext build number

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thanks for the report.

Similar Threads

  1. Remote Loading Items, Remote Checkbox Group Ext.ux.RemoteCheckboxGroup
    By bartonjd in forum Ext 3.x: Help & Discussion
    Replies: 19
    Last Post: 20 Jun 2012, 5:44 AM
  2. Replies: 2
    Last Post: 16 May 2011, 10:03 PM
  3. Remote Sort, Remote Group, Remote Paging events.
    By FCTim in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jun 2010, 10:05 AM
  4. Remote Loading Items, Remote Checkbox Group Ext.ux.RemoteCheckboxGroup
    By shahrzad in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 29 May 2010, 12:57 AM
  5. Change Grouping Grid Group Row Click Behavior
    By jurban in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 18 Oct 2009, 9:18 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi