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

adding underline for column heading

1 Answer 115 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Minh
Top achievements
Rank 1
Minh asked on 22 Sep 2011, 09:19 PM
Hi,

I'm looking for the setting to add an underline on my column headings. I've tried all that I can find and nothing seems to work. the following is a sample for one of my column.

 

 

<telerik:GridTemplateColumn UniqueName="AreaName" HeaderText="Area"  

SortExpression="_AreaName" ItemStyle-Width="150px" DataField="_AreaName"  

AndCurrentFilterFunction="Contains" FilterControlWidth="125px">  

 

<FooterTemplate>  

Template footer 

</FooterTemplate>  

 

<FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />  

 

<ItemTemplate

<%

#DataBinder.Eval(Container.DataItem, "_AreaName")%>  

</ItemTemplate>  

 

<EditItemTemplate>  

 

<telerik:RadComboBox runat="server" ID="RadComboBoxArea"  

OnItemsRequested="RadComboBoxArea_ItemsRequested"  

 

EnableLoadOnDemand="True" DataTextField="AreaName"  

 

DataValueField="ID" AutoPostBack="true"  

 

HighlightTemplatedItems="true" Height="140px" Width="175px" DropDownWidth="200px"  

 

OnSelectedIndexChanged="ComboBox1_OnSelectedIndexChangedHandler" 

onclientdropdownopening="OnClientDropDownOpening">  

<ItemTemplate> 

<%# DataBinder.Eval(Container, "Text")%>  

</ItemTemplate>  

 

</telerik:RadComboBox>  

 

</EditItemTemplate>  

 

<HeaderStyle Width="150px" HorizontalAlign="Center" VerticalAlign="Bottom"  

Font-Underline="True" />  

 

<ItemStyle Width="150px" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>  

 

</telerik:GridTemplateColumn>

thanks,

Minh bui 

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 23 Sep 2011, 05:45 AM
Hello Minh,

You can try the following approach to add underline for column header.
CSS:
<style type="text/css">
    .RadGrid_<skinname> .rgHeader
    {
        text-decoration:underline !important;
    }
</style>

Thanks,
Shinu.
Tags
Grid
Asked by
Minh
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or