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

Tool Tip on RadTreeViewItem

3 Answers 116 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 14 Nov 2008, 11:10 AM
How can I enable tool tip functionality on a treeviewitem?

Secondly I was looking for API Documentation but the documentation installed along with the installation does not have API documentation. From where can I get it?

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 14 Nov 2008, 02:37 PM
Hi Gaurav,

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
0
Valentin.Stoychev
Telerik team
answered on 17 Nov 2008, 08:04 AM
Hello Gaurav,

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.
Tags
TreeView
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Gaurav
Top achievements
Rank 1
Share this question
or