Results 1 to 2 of 2

Thread: Dynamically change node text of node in D3 Tree

  1. #1

    Default Dynamically change node text of node in D3 Tree

    Hi there,

    I'm looking for a way to dynamically change the text of the node in the horizontal tree depending on the selection made in the combobox at the top. Specifically the data in the parentheses of the nodeText.

    I was hoping to somehow iterate through the nodes of the tree and use the .setNodeText() method to change them but have had no luck in finding a method to return the nodes of the tree.

    Either that or refresh/reload the component and cause the nodeTexts to be reconfigured during that refresh/reload to reflect the selection made in the combobox.

    The issues I've encountered are being unable to obtain a list/array of the tree nodes or a reload or refresh method that I can invoke on the horizontal tree itself to trigger the change. I was wondering if anyone had any insight in how I could go about accomplishing what I require.

    Please see the attached screenshot to give you a visual representation of what I mean.

    Any help is greatly appreciated.

    Thank you in advance.


  2. #2


    Are you still looking for an Answer or you have found the help?

Similar Threads

  1. Replies: 1
    Last Post: 25 May 2012, 4:17 PM
  2. Is this the best way to change a tree node's text?
    By bzarzuela in forum Ext: Discussion
    Replies: 4
    Last Post: 6 May 2011, 1:45 AM
  3. How can I change a tree node icon dynamically?
    By sergiu079 in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 29 Dec 2010, 2:04 AM
  4. how to change tree node text?
    By emadomar in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 18 Feb 2008, 7:02 AM
  5. Change a Tree Node's Text
    By orhant in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 11 Jan 2007, 12:51 AM

Tags for this Thread

Posting Permissions

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