Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3641 in a recent build.
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Boston
    Posts
    138
    Vote Rating
    6
    drb is on a distinguished road

      0  

    Default 2.1.0-rc2 NestedList Grouped and Grouper no longer work

    2.1.0-rc2 NestedList Grouped and Grouper no longer work


    Touch 2.1.0-rc2

    In 2.0.1.1 in the NestedList listchange event it is possible to set up a Grouped on the List and a Grouper on the list.getStore().

    This no longer works in 2.1.0-rc2

    Code:
    Ext.setup({
        onReady: function () {
    
            var data = {
                text: 'Groceries',
                items: [{
                    text: 'Drinks',
                    gp: 'D',
                    items: [{
                        text: 'Water',
                        gp: "W",
                        items: [{
                            text: 'Sparkling',
                            gp: "S",
                            leaf: true
                        }, {
                            text: 'Still',
                            gp: "S",
                            leaf: true
                        }, {
                            text: 'Deep',
                            gp: "D",
                            leaf: true
                        }, {
                            text: 'Muddy',
                            gp: "M",
                            leaf: true
                        }]
                    }, {
                        text: 'Ale',
                        gp: 'A',
                        leaf: true
                    }]
    
                }, {
                    text: 'Lager',
                    gp: "L",
                    leaf: true
                }]
            };
    
            Ext.define('ListItem', {
                extend: 'Ext.data.Model',
                config: {
                    fields: [{
                        name: 'text',
                        type: 'string'
                    }, {
                        name: 'gp',
                        type: 'string'
                    }]
                }
            });
    
            var store = Ext.create('Ext.data.TreeStore', {
                model: 'ListItem',
                defaultRootProperty: 'items',
                root: data
            });
    
            var nestedList = Ext.create('Ext.NestedList', {
                fullscreen: true,
                title: 'Groceries',
                displayField: 'text',
                store: store,
                listeners: {
                    listchange: function (nlist, list) {
                        var liststore = list.getStore();
                        liststore.setGrouper({
                            groupFn: function (record) {
                                return record.get("gp");
                            }
                        });
                        list.setGrouped(true);
                    }
                }
    
            });
        }
    });
    Thanks
    David

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1

Tags for this Thread

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..."