Tool Tip on RadTreeViewItem

4 posts, 0 answers
  1. Gaurav
    Gaurav avatar
    8 posts
    Member since:
    Nov 2008

    Posted 14 Nov 2008 Link to this post

    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?
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 14 Nov 2008 Link to this post

    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.
  3. Gaurav
    Gaurav avatar
    8 posts
    Member since:
    Nov 2008

    Posted 14 Nov 2008 Link to this post

    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
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Nov 2008 Link to this post

    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.
Back to Top