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

Anomaly in alternating row when using tables in a GridTemplateColumn

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeremy Zoerman
Top achievements
Rank 1
Jeremy Zoerman asked on 08 Jul 2010, 03:18 PM
Hello Telerik Team,

I have discovered a scenario that I believe is not by design.

Problem:

When using a table in a RadGrid GridTemplateColumn, the <td> tags render with a bottom border. This behavior appears similar to that when a browser renders 'default' borders for a table that has not specified otherwise. The exception, in the scenario mentioned this occurs only for the bottom border of the cells and only occurs in alternating rows.

Reproducing should be as simple as adding any table to a GridTemplateColumn and setting alternating row color to white (for visibility).

Solution:

CSS class to explicitly define cell borders with !important declaration(s) to override RadGrid style sheet.

Thanks,
Jeremy

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 12 Jul 2010, 01:50 PM
Hello Jeremy Zoerman,

The easiest approach to remove the borders is to apply the following CSS rule:

div.RadGrid .rgAltRow td td
{
    border-bottom: 0px;
}

I hope this helps.

Kind regards,
Martin
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
Jeremy Zoerman
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or