GridView Themes + Selected Row color

6 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 10 Sep 2012 Link to this post

    Hi,

    i'm using a RadGridView with Theme="Metro". But how can i change the color of a selected Row? Now it
    is gray, but i want something like lightblue.

    Thanks
    Best Regards
    Rene
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 10 Sep 2012 Link to this post

    Hi Rene,

     

    The styles used in our themes are theme specific. If you want to modify the style for GridViewRow against Metro theme you can manually copy it and modify the selected color through manipulating the Border element named Background_Selected in the way you need. You may find the styles for all Telerik themes from the Themes folder of your personal installation.
    Please give it a try and let us know if you encounter any problems!  



    Regards,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 10 Sep 2012 Link to this post

    Hi,

    i tried to read 4393 rows of code, but i can't find the part, which is relevant for me? Please can you give me some more
    details please?

    Thanks
    Regards
    Rene
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 10 Sep 2012 Link to this post

    Hello Rene,




    I have prepared small sample demo which illustrates how to modify the selection effect of GridViewRow in Metro theme to LightBlue. Will you verify how this works for you?  



    All the best,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 11 Sep 2012 Link to this post

    Hi,

    this is realy great, thanks a lot. But i have a little problem. I'm using a RowStyleSelector which shows me a different background, if
    one porperty of my ViewModel ist "OK" or "FAILER".... In combination with your Demo the Color of the selected row is still gray.
    How does your example work with an RowStyleSelector?

    Thanks
    Best Regards
    Rene
  7. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 11 Sep 2012 Link to this post

    Hello Rene,

     


    Thank you for getting back to us! When using RowStyleSelectors you should provide two different Metro styles with their templates where the selection background is Light Blue. Just change the background of the row in these two separate styles to achieve your goal.
    Hope this helps!   



    Regards,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready