Selected Item highlight

3 posts, 0 answers
  1. Satya
    Satya avatar
    6 posts
    Member since:
    Jul 2011

    Posted 26 Jul 2011 Link to this post

    Hi,
    Can some one help me on this?
    When I click on an item in the TreeView its highlighted with default backgroud color i.e light blue, and when I click on the any other control on the page the selected item backgroud color is gone.

    How can I retain the defalut light blue backgroud color when I click on the other control. basically I want to keep the highlited color as it is even when I click on the other conrols on the page

    Thank you.
    sayap
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 29 Jul 2011 Link to this post

    Hi Satya,
    The light blue background comes from the focus and once the RadTileViewItem loses it the background is changed to light gray. You can keep this background if you edit the default template of the RadTreeViewItem - in it there's a VisualState named SelectedUnfocused and all you have to do is change its TargetName from SelectionUnfocusedVisual to SelectionVisual (after that you can delete the Border with name SelectionUnfocusedVisual because it's not used anymore).
    For further references please examine the attached project and if you have more questions feel free to ask.

    All the best,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft banner
  4. Satya
    Satya avatar
    6 posts
    Member since:
    Jul 2011

    Posted 29 Jul 2011 Link to this post

    Hi Zarko,

    Thank you very much for providing with a sample project.

    --Satya
Back to Top