Changing forecolor on selected tab

2 posts, 0 answers
  1. Czeshirecat
    Czeshirecat avatar
    66 posts
    Member since:
    Jun 2016

    Posted 16 May 2018 Link to this post


    I'm using the Breeze theme with default values on this pageview control.

    Boss says he doesn't like the black on grey appearance of the tab text as they'll be difficult to see. He wants me to change the forecolor of the selected tab to white. (I thought I'd change the theme but 5mins with the theme editor terrified me)

    How can I achieve this please?

  2. Dimitar
    Dimitar avatar
    2959 posts

    Posted 17 May 2018 Link to this post

    Hi Claire,

    It would be easier to do this in the code. You can use the SetThemeValueOverride method which can change the setting in the already loaded theme. Here is the code:
    foreach (var item in radPageView1.ViewElement.Items)
        item.SetThemeValueOverride(LightVisualElement.ForeColorProperty, Color.White, "Selected");

    I hope this will be useful. Let me know if you have additional questions.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top