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

2 posts, 0 answers
  1. Nachiappan Narayanan
    Nachiappan Narayanan avatar
    5 posts
    Member since:
    Aug 2006

    Posted 25 Mar 2009 Link to this post

    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
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 26 Mar 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top