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

EnableEmbeddedBaseStylesheet renabled when changing TabStrip tabs

1 Answer 9 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 18 Oct 2013, 09:08 AM
I've had to set EnableEmbeddedBaseStylesheet to false in order to reduce the size of the rows in RadGrid, as we needed to conserve screen space.

This is my applied CSS change.

.RadGrid_Black .rgRow td,
 .RadGrid_Black .rgAltRow td,
 .RadGrid_Black .rgEditRow td,
 .RadGrid_Black .rgFooter td
 {
    border-style: solid;
    border-width: 0 0 1px 0;
    line-height: 15px;
    height: 15px ;
    font-size: 12px;
}


This page also contains a TabStrip which loads different ASCS controls and I have discovered that when I change any of these tabs the RadGrid reverts back to it's previous appearance, as if EnableEmbeddedBaseStylesheet had been set back to true.

I have so far been unable to find a work around for this bug, help would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Accepted
Galin
Telerik team
answered on 23 Oct 2013, 07:21 AM
Hello Alex,

I am not quite sure how switching the tabs will load additional styles, but I guess you set EnableEmbeddedBaseStylesheet to false in order to reset the padding of the cells. Therefore I suggest you to add the following CSS properties to the existed rule

.RadGrid_Black .rgRow td,
.RadGrid_Black .rgAltRow td,
.RadGrid_Black .rgEditRow td,
.RadGrid_Black .rgFooter td
{
    padding-top: 0;
    padding-bottom: 0;
}

I hope this helps.

Regards,
Galin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Galin
Telerik team
Share this question
or