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

Horizontal line thru header?

2 Answers 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 07 Sep 2010, 09:29 PM
The attached image is showing you the two right most header columns of a grid. 

The 'Locations' column is a GridBoundColumn, and the 'Add to my selections' is a GridTemplateColumn. All of the columns have an underline, except this last column does not have sorting enabled, so I do not want it to display the underline. I've tried overriding it, but that hasn't worked, so I've set a CssClass on the column. When I do that, this 'line' seems to come thru the column, and I can't figure out how to get rid of it. 

If I remove the CssClass from the last column, the 'line' disappears, and only displays in that 'little box' on the far right (a scroll bar is underneath it).

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 08 Sep 2010, 06:08 AM
Hello Tim,

 I have tried the following method to hide the underline for GridTemplateColumn while keeping underline for other BoundColumns. Give a try with this and see whether it helps you.

ASPX:
<MasterTableView HeaderStyle-Font-Underline="true" . . . .>
 . . . . . .
    <telerik:GridTemplateColumn HeaderText="GridTemplateColumn">
        <HeaderStyle Font-Underline="false" />
           <ItemTemplate>
               <. . . . .>
          </ItemTemplate>
    </telerik:GridTemplateColumn>

Thanks,
Princy.
0
Tim
Top achievements
Rank 1
answered on 08 Sep 2010, 03:22 PM
In my reply to your post, I found my issue.

The .RadGrid_Default .rgHeader, .RadGrid_Default .rgHeader a was being overridden in an external CSS sheet, and forcing the underline.

Thanks
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Tim
Top achievements
Rank 1
Share this question
or