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

[Solved] Yellow background when row is clicked

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alec
Top achievements
Rank 1
Alec asked on 27 May 2009, 01:50 AM
Whenever I click on a row, there's a yellow background applied. How do i get rid of that?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 May 2009, 03:59 AM
Hello Alec,

I hope you have enabled row selection in your grid. Are you using a particular skin? Try out the following code to remove any background color when selecting as row when you dont have any skin:
aspx:
 <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" AutoGenerateColumns="true" runat="server" > 
       <SelectedItemStyle BackColor="Transparent" ForeColor="Black" /> 

If you are using a skin, then you would have to override the preset skin settings using css as shown below:
aspx:
 <telerik:RadGrid Skin="Office2007" ID="RadGrid1" DataSourceID="SqlDataSource1" AutoGenerateColumns="true" runat="server"
       <SelectedItemStyle CssClass="selectedrow"/> 

css:
 <style type="text/css"
    .selectedrow 
    { 
      background: None !important; 
    } 
 </style> 

Thanks
Princy.
Tags
Grid
Asked by
Alec
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or