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

Selected Item highlight

2 Answers 76 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Satya
Top achievements
Rank 1
Satya asked on 26 Jul 2011, 05:44 PM
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 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 29 Jul 2011, 02:13 PM
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 >>

0
Satya
Top achievements
Rank 1
answered on 29 Jul 2011, 07:11 PM
Hi Zarko,

Thank you very much for providing with a sample project.

--Satya
Tags
TreeView
Asked by
Satya
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Satya
Top achievements
Rank 1
Share this question
or