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

Setting text colour on SelectedItemStyle

1 Answer 36 Views
ListView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 28 Mar 2017, 08:30 PM

Our customer woud like to have normal ListView items with black text on a white background, and selected items with white text on a green background.

I can't see a way of setting the TextColor for the SelectedItemStyle. Is this possible? If not, is there another way of achieving this?

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 30 Mar 2017, 08:32 AM
Hi James,

I have already answered this question in your support ticket.
However, I will paste the same answer here so that others from the community can find and benefit from it.

In order to achieve your scenario you can take advantage of the SelectedItemStyle, ItemStyle, SelectionChanged and ItemTemplate properties of the RadListView. I am sending you the files that demonstrate this approach. Please take a look at them and give this approach a try at your end. 

I hope this will get you started.

Regards,
Pavel R. Pavlov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
James
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or