Disable Cell Selection with Metro Theme

2 posts, 0 answers
  1. Ali
    Ali  avatar
    2 posts
    Member since:
    Dec 2008

    Posted 28 Sep 2011 Link to this post

    i've applied the metro theme to my gridview and i've set can user select to false.  however, when I click on a cell, the cell is highlighted with a black border.  I don't want the black border, or don't want the cell to be selectable.

    I've try the solution from this post but the black border still shows:    http://www.telerik.com/community/forums/silverlight/gridview/disable-selected-cell-highlight.aspx

    I'm thinking the theme is overriding the control template. 

    how can I get rid of the black box but still use the metro theme?

    Thanks,

    Ali
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 30 Sep 2011 Link to this post

    Hello Ali ,

     
    Generally the styles used in our themes are theme specific. As described in the previously referenced thread you need to edit the cell template and change the background of the cell when it goes to Current state. The same is valid in case you have to predefine the appearance of the selected cell.
    In our online documentation you will find a help article, which might be of help on this topic, please follow this link.  In your case you have to get the style for Metro theme and change it in the way you need. You may get access the files for all Telerik themes from the Themes folder of your personal installation. 



    I am attaching you sample application illustrating this approach. 



    All the best,
    Vanya Pavlova
    the Telerik team

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

Back to Top