Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1050 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    olouvignes is on a distinguished road

      0  

    Default [PR2] this.setConfig() broken

    [PR2] this.setConfig() broken


    There seems to be some issues with object config on ST2, my grouped lists are gone (group headers - list ok).

    Code:
    Ext.define('App.view.project.SomeList', {
    
    
        id: 'some-list',
        alias: 'widget.some-list',
        extend: 'Ext.List',
    
    
        config: {},
    
    
        initialize: function() {
    
    
            // Set configuration
            this.setConfig({
                ui: defaults.ui,
                store: 'SomeStore',
                grouped: true,
                disableSelection: true,
                preventSelectionOnDisclose: true,
                itemTpl: ['<strong>{name}</strong>'].join('')
            });
    Grouped not working -> this.getGrouped() returns false!

    Code:
    Ext.define('App.view.project.SomeList', {
    
    
        id: 'some-list',
        alias: 'widget.some-list',
        extend: 'Ext.List',
    
    
        config: {grouped: true},
    
    
        initialize: function() {
    
    
            // Set configuration
            this.setConfig({
                ui: defaults.ui,
                store: 'SomeStore',
                disableSelection: true,
                preventSelectionOnDisclose: true,
                itemTpl: ['<strong>{name}</strong>'].join('')
            });
    Grouped not working -> this.getGrouped() returns true but ST breaks on updatePinHeaders(), var 'store' being empty (cannot call method 'on' of null).
    Was broken on PR1 too.

    Code:
    Ext.define('App.view.project.SomeList', {
    
    
        id: 'some-list',
        alias: 'widget.some-list',
        extend: 'Ext.List',
    
    
        config: {grouped: true, store: 'SomeStore'},
    
    
        initialize: function() {
    
    
            // Set configuration
            this.setConfig({
                ui: defaults.ui,
                disableSelection: true,
                preventSelectionOnDisclose: true,
                itemTpl: ['<strong>{name}</strong>'].join('')
            });
    ST crashes : doAddHeader() Uncaught TypeError: Cannot call method 'insertFirst' of null.
    Worked fine on PR1.

    Would love to have some override/patch as i can't make group headers work with PR2.

  2. #2
    Sencha User 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


    I will check into the setConfig issue. The list issues has already been resolved for the next release. Due to the size of the change an override isn't really feasible. We will try to have another PR out soon to address the problem.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1