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

SelectedItemCSS-Class

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas Rozzi
Top achievements
Rank 1
Thomas Rozzi asked on 17 May 2010, 08:28 PM
I have a grid with a Windows7 skin. I can't get the selected row class to become effective.

Thanks
Thomas

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 May 2010, 08:52 AM
Hi Thomas,

Try adding !important modifier, to override the default style setting.

CSS:
 
    <style type="text/css"
        .MyStyle 
        { 
            background-color: Red !important; 
            background-imagenone !important; 
        } 
    </style> 

ASPX:
 
      . . . 
  <SelectedItemStyle CssClass="MyStyle" /> 
    <MasterTableView EditMode="EditForms" . . . 

-Shinu.
0
Dimo
Telerik team
answered on 18 May 2010, 09:20 AM
Hi Thomas,

Most probably your custom CSS styles have low specificity. Either use !important or refer to:

http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx

Sincerely yours,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Thomas Rozzi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or