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

Tooltip while loading from LoadXml method in TreeView

1 Answer 17 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Avik
Top achievements
Rank 1
Avik asked on 24 Apr 2009, 05:45 AM
Hi,

I am populating a Treeview from a xmlstring by the method LoadXml.
It is giving me no problem in loading.
Now I want to have tooltip for each of the node of the treeview. I have the required data in the xml string as attributes.
I'm finding no way to get the tooltip shown.

Can you please tell me how to do that?
Thans in advance.

Regards,
Avik

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 24 Apr 2009, 01:53 PM
Hello Avik,

Just name the attribute ToolTip:

        StringBuilder sb = new StringBuilder();  
        sb.Append("<Tree>");  
        sb.Append(" <Node Text='Root Node 1' ToolTip='my tooltip'>");  
        sb.Append(" </Node>");  
        sb.Append(" <Node Text='Root Node 2'>");  
        sb.Append(" </Node>");  
        sb.Append(" <Node Text='Root Node 3'>");  
        sb.Append(" <Node Text='Child Node'>");  
        sb.Append(" </Node>");  
        sb.Append(" </Node>");  
        sb.Append(" </Tree>");  
        string xmlString = sb.ToString();  
        RadTreeView1.LoadXml(xmlString); 

Now the tooltip will be shown automatically.

Greetings,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Avik
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or