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

Radgrid detailtable CSS on childHeader

3 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 28 May 2014, 11:41 AM
Hi,
We have a radgrid which have mastertable and detailtables and we would like to have a gray background starting from extreme left. We managed doing for mastertable header by using below css

.rgRow .rgExpandCol
       {
         background-color:Gainsboro !important;
         
       } 

Please help us so that we can achieve the same effect for detailtable headers.
Please find the attached image.

3 Answers, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 02 Jun 2014, 05:38 AM
Hello Kelly,

The selector of the CSS rule you provided do not target all the element you want because rgExpandCol doesn't always occur in .rgRow. Try this rule:

CSS:

div.RadGrid_Silk td.rgExpandCol {
    background: red;
}

I hope this helps.

Regards,
Venelin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kelly
Top achievements
Rank 1
answered on 03 Jun 2014, 07:12 AM
Its not working and I just want the gray on the header of child just like parent.
0
Venelin
Telerik team
answered on 05 Jun 2014, 07:25 AM
Hello Kelly,

I am afraid that this requirement cannot be achieved because the .rgExpandCol is one single <td> element starting from the detail table header to its bottom (see the attached image).

Regards,
Venelin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Kelly
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Kelly
Top achievements
Rank 1
Share this question
or