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

Using RowStyleSelector with Metro Theme, how do you change the SelectedRow color to know which RowStyleSelector row you have clicked?

1 Answer 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bryce
Top achievements
Rank 1
Bryce asked on 30 Jan 2012, 11:48 PM
Hi,

I am currently using the Metro Theme, and have a RowStyleSelector. The RowStyleSelector returns a color that can be red or white. If a user selects a row with the Metro theme, it makes the row a bluish color no matter if the row is red or white. How would I be able to change the selected row color depending on whether it is red or white?

Thanks,
Bryce

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 02 Feb 2012, 08:57 AM
Hello Bryce,

 


If you want to change the selection of a row you should predefine its template and modify the Border element named Background_Selected in the way you need. In case of StyleSelectors what you may do is to keep a template within the corresponding style with modified selection and reference it based on your custom logic. 




Kind regards,
Vanya Pavlova
the Telerik team

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

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