Results 1 to 4 of 4

Thread: TreePanel remove node/record

  1. #1
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default Answered: TreePanel remove node/record

    Hello,
    I am trying to remove a node from tree panel but after nodes's parent node collapse/expand it appears again. Is it a bug or feature, how to remove it completely?
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  2. It works if I call remove from parent node:
    Code:
    record.parentNode.removeChild(record);
    is it normal behavior?

  3. #2
    Sencha User yeghikyan's Avatar
    Join Date
    Mar 2009
    Location
    München
    Posts
    574
    Answers
    99

    Default

    It works if I call remove from parent node:
    Code:
    record.parentNode.removeChild(record);
    is it normal behavior?
    "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague." – Edsger W. Dijkstra

  4. #3
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,257
    Answers
    759

    Default

    Yes, you need to remove nodes from the parent, not from the store.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  5. #4
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,339
    Answers
    20

    Default

    You can also filter out a node instead of removing it.

Similar Threads

  1. TreePanel node remove BUG?
    By amsoft in forum Ext: Q&A
    Replies: 2
    Last Post: 20 Jun 2012, 3:11 AM
  2. iconprovider treepanel - add or remove node how to update icon
    By tkelly01 in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 4 Oct 2010, 9:17 AM
  3. Need to reload single treepanel node, and treepanel node checkbox error
    By sgdevteam in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 10 Mar 2010, 5:46 PM
  4. TreePanel Remove Node help
    By rflopes in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 15 Aug 2009, 1:53 PM
  5. How can I remove the node icons in a TreePanel?
    By allenyoung in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 11 Jan 2008, 1:02 AM

Posting Permissions

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