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

[Solved] Border are still displayed even after setting GridLines="None"

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim Van Meter
Top achievements
Rank 1
Tim Van Meter asked on 15 Mar 2010, 05:16 PM
Hello,

I just upgraded to the latest version of Telerik UI (version 2010.1.309.35). Now there is a problem on how my grids are displayed. In previous version, when I set GridLines="None" property for the grids, the borders separating the rows wouldn't display, which was my desired behavior. Now, after upgrading, even though that property is still set for my grids, the borders are now displayed. Please see the attached screenshot.

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 16 Mar 2010, 10:02 AM
Hi Tim Van Meter,

The border styles come from the new RadGrid base stylesheet. Here is how to remove them with CSS:

div.RadGrid_SkinName  .rgRow  td,
div.RadGrid_SkinName  .rgAltRow  td,
div.RadGrid_SkinName  .rgEditRow  td,
div.RadGrid_SkinName  .rgFooter  td
{
    border-bottom-width:0;
}

Normally the RadGrid borders are not influenced by the GridLines property - it controls the rules HTML attribute (which is obsolete), not CSS borders. With the old version you are not seeing borders, because their color matches the background color of the data rows.

All the best,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Tim Van Meter
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or