Background color for SelectedItem even if RadGridView is disabled

2 posts, 1 answers
  1. Nuno
    Nuno avatar
    1 posts
    Member since:
    Oct 2011

    Posted 18 Oct 2011 Link to this post

    Hi,

    i want to disable a RadGridView at some point, but i would like to maintain a different background color for cells/row of the SelectedItem.
    I've seen some examples of how to change the background through Styles and VisualStates but it only manages to change the background color of all cells, including the selected ones.

    Thank you for you help.

    Courela
  2. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 18 Oct 2011 Link to this post

    Hello Nuno,

     
    When you enable disable RadGridView, GridViewRow, GridViewColumn, GridViewCell you perform this logic on a cell level. Indeed when you disable the whole grid, a gray border appeared and mouseover/selection effects are lost. If you want to maintain these effects you should predefine the template of GridViewCell and modify the Border element named Background_Disabled.
    You should change its background color to a color, which allows transparency. 



    Best wishes,
    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top