Anomaly in alternating row when using tables in a GridTemplateColumn

2 posts, 0 answers
  1. Jeremy Zoerman
    Jeremy Zoerman avatar
    3 posts
    Member since:
    Apr 2010

    Posted 08 Jul 2010 Link to this post

    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

  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 12 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top