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

Same style on DetailsView as MasterView

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 17 Jan 2009, 12:45 PM
How do I apply the same background color on Den details View as the MasterView

This is how my Theme css file looks like

.GridRow_Default

 

{

 

background: #f7f7f7;

 

 

height: 22px;

 

}


.GridAltRow_Default

{

 

background-color: #eeeeee;

 

 

height: 22px;

 

}

Right now I got the alternate color in the detals row but I want it to look like it's MasterView

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Jan 2009, 05:13 AM
Hi Anders,

I tried the above css and it is working as expected. I am not sure about what is happening on your end. Can you give a try with the following approach and see if it makes any difference.

css:
<head runat="server"
    <title>Untitled Page</title> 
    <style type="text/css"
 
.GridRow_Default td 
 background#f7f7f7 !Important; 
   height22px
    
 
.GridAltRow_Default td 
background-color#eeeeee !Important; 
height22px
 
    </style> 
</head> 


Thanks
Shinu
0
Anders
Top achievements
Rank 1
answered on 19 Jan 2009, 08:25 AM
The code is working perfect for me when I doesn't have any Details View. When I have the the details view the rows also applyes the Alt-color which I don't want. Only the master table should use the altcolor and the details view should have the same color as its master row.
0
Sebastian
Telerik team
answered on 19 Jan 2009, 11:45 AM
Hello Anders,

I think that the solution from the documentation topic pointed below will help you attain the hierarchy presentation you are searching for:

http://www.telerik.com/help/aspnet-ajax/grddifferentstylesineachhierarchylevelwithskin.html

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Anders
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Anders
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or