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

How to set Foreground color of a selected item

1 Answer 88 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shantimohan
Top achievements
Rank 1
Shantimohan asked on 15 Oct 2012, 03:32 PM
Now when a row / item is selected in the list box, the foreground color is set to the theme color. I don't want this to happen. I want it to retain the Foreground="White" even if an item is selected. How can I accomplish it?

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 16 Oct 2012, 06:27 AM
Hello Shantimohan,

Thanks for writing.

Just set the Foreground color of the root element within your Item Template to the desired color explicitly.
This will override the default behavior.

Greetings,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataBoundListBox
Asked by
Shantimohan
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or