This is a migrated thread and some comments may be shown as answers.

Tree view - Two texts (display text, processing text) for each node

1 Answer 78 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Nachiappan Narayanan
Top achievements
Rank 1
Nachiappan Narayanan asked on 25 Mar 2009, 05:05 PM
We are trying to see whether the tree control can have two texts associated with each node; one for display and one for action behind the scenes.

We have a XSD file in a tree structure that has each element in a coded form. ie. MSH.1.0.0 is one node.  However, we want to display MSH.1.0.0 (Sending Application).  But whenever the user does something with that node, we want to use MSH.1.0.0 for the behind the scene operation such as text formatting ,etc.

Is it possible to do the above with the tree control?  Basically, I want to have the node text for display and node text for processing.  Any ideas on how to implement this will be very much appreciated.


Nachi

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 26 Mar 2009, 10:25 AM
Hi Nachiappan Narayanan,

Thank you for writing. You could easily use the Tag property of the nodes. It is of type object and you will have to cast it to string but it should serve you well. The Tag property is meant to serve as storage for any kind of data that the user needs.

Do not hesitate to write again if you have more questions.

All the best,
Victor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Treeview
Asked by
Nachiappan Narayanan
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or