Hybrid View

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

      0  

    Exclamation Tree with multiSelect on view doesn't behave accordingly

    Tree with multiSelect on view doesn't behave accordingly


    In Ext Designer you can only set multiSelect on the view of a tree and not on the tree itself. This seems the correct way (see documentation of the view), but the resulting tree doesn't allow multiSelect.
    If I manually add multiSelect to the treepanel it works, but this is overwritten by every export with Ext Designer.
    I'm not sure if this is a bug in Ext Designer or ExtJS 4 itself, because the designer works the way the documentation says. But this doesn't work in the browser.

    Using Ext Designer 1.2.2 and ExtJS 4.0.7

    A workaround is:
    Code:
    Ext.Function.interceptBefore(Ext.tree.TreePanel.prototype, 'initComponent', function() {
        if ( Ext.isDefined(this.viewConfig.multiSelect) && this.viewConfig.multiSelect )
            this.multiSelect = true;
    });

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    68
    Vote Rating
    2
    MaciejZabielski is on a distinguished road

      1  

    Default


    I think that multiselect is not supported in 4.1.1 as a configuration option. It's not in the Api docs.<br>But you can provide selection model with mode: multi

    Code:
     
    selModel: Ext.create('Ext.selection.RowModel', {
                    mode: 'MULTI'
                })

Thread Participants: 1

Tags for this Thread