Results 1 to 5 of 5

Thread: Ext.tree.Panel.reconfigure - Can I use this method?

  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425
    Answers
    20
    Vote Rating
    685
      -1  

    Default Answered: Ext.tree.Panel.reconfigure - Can I use this method?

    The Ext.tree.Panel.reconfigure method is not documented, but it appears to work in my light testing.

    Can I use this method with confidence?

    Ext JS 4.2.2

  2. Ext.tree.Panel now inherits from Ext.panel.Table (grid) .. so it should be fine.

    Do you see any issues?

    Scott.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    504
      1  

    Default

    Ext.tree.Panel now inherits from Ext.panel.Table (grid) .. so it should be fine.

    Do you see any issues?

    Scott.

  4. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585
    Vote Rating
    394
      2  

    Default

    Tree panel has extended Table since 4.0 but reconfiguring a tree definitely didn't work with 4.0. However, as Tree inherited the documentation from Table it led to a lot of people trying to reconfigure a Tree with disastrous results.

    In 4.1 the documentation for reconfigure was moved to the Grid classes to help avoid confusion but the methods remained on Table.

    If 4.2's grid re-write fixed these problems then the docs need updating. However, I'd be surprised if they did, the NodeStore stuff in the tree view is pretty delicate.

    Just reconfiguring the columns might work though...

  5. #4
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425
    Answers
    20
    Vote Rating
    685
      -2  

    Default

    FYI
    I see that there are a few changes in this method in the nightly build - ext-4.2.3.1245

  6. #5
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425
    Answers
    20
    Vote Rating
    685
      -2  

    Default

    Quote Originally Posted by scottmartin View Post
    Ext.tree.Panel now inherits from Ext.panel.Table (grid) .. so it should be fine.

    Do you see any issues?

    Scott.
    I used the reconfigure method on buffered grids... and it works fine using 4.2.2.

    If it's indeed possible to reconfigure a tree panel, then I'd update this TODO comment which is still present in 4.2.3.1364.
    Code:
    Ext.define('Ext.tree.Panel', {
        extend: 'Ext.panel.Table',
        ...
        // @private
        // TODO: Decide whether it is possible to reconfigure a TreePanel.
        unbindStore: function() {
            var me = this,
                store = me.store;
    
    
            if (store) {
                Ext.destroy(me.storeListeners, me.storeRelayers, me.storeRelayers1);
                delete store.ownerTree;
            }
        },
        ....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •