All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
TreeView
/
Tooltip while loading from LoadXml method in TreeView
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
2 posts, 0 answers
Avik
32 posts
Member since:
Jun 2008
Posted 24 Apr 2009
Link to this post
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
Veselin Vasilev
Admin
2992 posts
Posted 24 Apr 2009
Link to this post
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.
Back to Top
Close