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

MasterTable_Vista

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
giridhar
Top achievements
Rank 1
giridhar asked on 16 Feb 2009, 11:15 AM
Hi,
   I am working on styling of Radgrid. Currently it's using Vista skin. For my requirement, I want the 'border' attribute of "MasterTable_Vista" to 0. I am unable to know how to set this.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Feb 2009, 11:56 AM
Hello giridhar,

There is no border set to this CSS class in the Vista embedded skin. Do you mean to say that you want to remove the cell borders? They are set by the following CSS rules:


.GridRow_Vista td,
.GridAltRow_Vista td,
.GridEditRow_Vista td,
.GridFooter_Vista td,
.GridGroupFooter_Vista td
{
border:1px solid;
padding-top:3px;
padding-bottom:3px;
}

.GridRow_Vista td,
.GridAltRow_Vista td
{
border-color:#fcfcfc #fff #fcfcfc #ededed;
}


The above CSS rules have selectors with specificity of 11 (1 CSS class + 1 HTML element). In order to override them, you need to supply CSS rules with higher specificity.

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

In addition, make sure that the GridLines property of RadGrid is set to "None" (default value).


All the best,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
giridhar
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or