3 Answers, 1 is accepted
0
Hi Gaurav,
You need to set the Tooltip property like that:
http://www.telerik.com/help/silverlight/telerik.windows.controls.navigation-telerik.windows.controls.radtreeviewitem_members.html
Please let us know if you have any other problems.
Kind regards,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You need to set the Tooltip property like that:
<
telerik:RadTreeViewItem mscontrols:ToolTipService.ToolTip="Item16" Header="ITem16"></telerik:RadTreeViewItem>
mscontrols prefix is declared like that:
xmlns:mscontrols="clr-namespace:System.Windows.Controls;assembly=System.Windows"
About the API documentation. We have the API available online here:
http://www.telerik.com/help/silverlight/telerik.windows.controls.navigation-telerik.windows.controls.radtreeviewitem_members.html
Please let us know if you have any other problems.
Kind regards,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gaurav
Top achievements
Rank 1
answered on 15 Nov 2008, 03:52 AM
Thanks for your prompt response. I am trying to add treeview items programmatically. In fact I have written a class which essentially extends a TreeViewItem (MyClass : RadTreeViewItem) and then I add the instance of this class to a TreeView. How do I add tooltip in this case? Regarding the API documentation, can I download it?
I believe in one of your posts you mentioned that you are planning to include a context menu with TreeViewItem. When can we expect it to be released.
One thing I noticed is with "IsLineEnabled" and Indentation. If I set IsLineEnabled = True and go with default indentation (i.e. do not include "ItemsIndent" property), lines are aligned properly; however the moment I define this property the lines are not aligned when a tree is expanded.
By the way, this is a really great product. Quite easy to use and lots of customization capabilities.
Thanks
I believe in one of your posts you mentioned that you are planning to include a context menu with TreeViewItem. When can we expect it to be released.
One thing I noticed is with "IsLineEnabled" and Indentation. If I set IsLineEnabled = True and go with default indentation (i.e. do not include "ItemsIndent" property), lines are aligned properly; however the moment I define this property the lines are not aligned when a tree is expanded.
By the way, this is a really great product. Quite easy to use and lots of customization capabilities.
Thanks
0
Hello Gaurav,
In order to set the tooltip programmaticaly use this code:
About the ItemsIndent problem - I checked the issues and confirm it as a bug. It will be fixed with next release that will be available in the following days this week. Thanks for bringing it up. Your telerik points has been updated.
About the integration with ContextMenu - you can do this even now - just add the context menu to the treeview. We will work towards extending this functionality with the Q1 release. See how to work with Context Menu here:
http://demos.telerik.com/silverlight/#ContextMenu/FirstLook
Greetings,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
In order to set the tooltip programmaticaly use this code:
RadTreeViewItem item = new RadTreeViewItem() { Header = "ProgramItem" }; |
item.SetValue(ToolTipService.ToolTipProperty, item.Header); |
RadTreeView1.Items.Add(item); |
About the ItemsIndent problem - I checked the issues and confirm it as a bug. It will be fixed with next release that will be available in the following days this week. Thanks for bringing it up. Your telerik points has been updated.
About the integration with ContextMenu - you can do this even now - just add the context menu to the treeview. We will work towards extending this functionality with the Q1 release. See how to work with Context Menu here:
http://demos.telerik.com/silverlight/#ContextMenu/FirstLook
Greetings,
Valentin.Stoychev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.