Results 1 to 2 of 2

Thread: Ext.tree.Panel can be reconfigured ?

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    224
    Answers
    13

    Default Ext.tree.Panel can be reconfigured ?

    Ext.tree.Panel has the method reconfigure() like Ext.grid.Panel, both uses Ext.view.Table

    But when i use tree.Panel reconfigure, using the same columns as the original configuration (also not giving it a new store) just to test the reconfiguration is working, well its not, gives an error

    Uncaught TypeError: Object [object Object] has no method 'getDepth'

    Note that this tree.Panel first renderers the store with no problem, then, for tests, i added a button and there i just do reconfigure(), passing the same column definition (copied/pasted), and gives that error.

    so its a bug or reconfigure is not suported by Ext.tree.panel (has the method btw) ?

    btw that 'getDepth' error comes from the renderer function on tree panel, the method receives a record that its empty ... its weird :d because the store is ok, since first time renderes with no problem and doing the reconfigure, store doenst change (its not loaded again).
    tested using Ext 4.1.1 rc1 (original test with Ext.4.1.0 rc2)

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    Please see the following thread:
    http://www.sencha.com/forum/showthread.php?143843

    It is under consideration for 4.2 release.

    Scott.

Posting Permissions

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