Setting text colour on SelectedItemStyle

2 posts, 0 answers
  1. James
    James avatar
    4 posts
    Member since:
    Mar 2017

    Posted 28 Mar Link to this post

    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?

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1232 posts

    Posted 30 Mar Link to this post

    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
Back to Top