RadTreeViewItem highlighted control template size/style

6 posts, 1 answers
  1. Julian
    Julian avatar
    16 posts
    Member since:
    Mar 2009

    Posted 15 Apr 2009 Link to this post

    Hi

    I have a RadTreeView with several items, as shown here:

    http://tinypic.com/view.php?pic=29m6sxs&s=5

    Is there a way to change the RadTreeViewItem's highlighting yellow selection bar to not span across until the end of the tree view, but to end when where the tree view item's label ends?

    The TreeView may get quite wide so I don't want the selection highlight to span until the rightmost portion of it, so ideally it would span from the beginning of the item until the end of the item.

    Many thanks
  2. Answer
    Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 15 Apr 2009 Link to this post

    Hi Julian Borthwick,

    Currently you should set a new template to the tree item in order get a shrunk highlighting.

    Best wishes,
    Ivan
    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tao Jiang
    Tao  Jiang avatar
    10 posts
    Member since:
    Oct 2009

    Posted 03 Nov 2009 Link to this post

    I have the same issue, Can you send an example of setter?

    Thanks,
  5. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 06 Nov 2009 Link to this post

    Hello Tao Jiang,

    You can apply  a custom theme to any of  the controls. For more information you can follow the link below:
    http://www.telerik.com/help/silverlight/radcontrols-for-silverlight-expression-blend-support.html 

    Please find attached an example.

    If you have any further question please do not hesitate to ask.

    I hope this will help you.

    Regards,

    Dimitrina
    the Telerik team

     


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Vlada
    Vlada avatar
    2 posts
    Member since:
    Apr 2009

    Posted 27 Dec 2009 Link to this post

    Hi,
    how can I apply new modified Style to all subitems. Is there better way to set it up for all items than explicitly set Style for each item?

    Thank you.
  7. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 28 Dec 2009 Link to this post

    Hello Vlada,

    You can use ItemContainerStyle property. For more information please rake a look at the online help articles:
    http://www.telerik.com/help/wpf/radtreeview-styling-and-appearance-item-container-style.html

    All the best,
    Boryana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for WPF is Visual Studio 2017 Ready