Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
975
child node values
posted

I have the tree working ok. I have one problem though. I want the nodes to display the member names but once clicked i want them to pass the memberid. Is there a way to have the node text be the member name and have the node value be the memberid?

 

Thanks

  • 1923
    posted

    Alternatively to value you can also store data like that in the tag. Just store the value in the tag when you build the tree and then client side you can use the node.getTag() function to get the value...

  • 315
    Offline posted

    The treenodes have properties Text and Value.

    In property Text you set the text you want to show, in Value you put the stuff you need when a user clicks on a node.