Results 1 to 2 of 2

Thread: Tree after reload not work properly

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    45
    Answers
    1

    Default Tree after reload not work properly

    I have a tree with first time load it works fine, when i want reload tree any time, even json the same responded but my tree collapse ( it show only 1 level of child root) when i click on that child it will show all child like work normal, but all items become stuck could not click, all is crash, i think may be conflict.
    Code:
    Ext.getCmp('tree-role-panel').getStore().load()
    i by googling many hours but no luck mostly other people just use above code works but me not any idea?

  2. #2
    Sencha User
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    If you're returning the same dataset each time and it's appending to the nodes already in the tree you likely have a conflict with duplicate IDs on the nodes. You can get around this by setting another field to act as the primary ID using the idProperty on the model definition:
    http://docs.sencha.com/extjs/4.2.1/#...cfg-idProperty

Posting Permissions

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