This is a migrated thread and some comments may be shown as answers.

[Solved] Disable Cell Selection with Metro Theme

1 Answer 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ali
Top achievements
Rank 1
Ali asked on 28 Sep 2011, 09:42 PM
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

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 30 Sep 2011, 11:42 AM
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 >>

Tags
GridView
Asked by
Ali
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or