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

Background color when sorting not changing custome skin

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
German
Top achievements
Rank 1
German asked on 26 Aug 2011, 05:07 PM
Hello,

I have a costume skin that works fine, except when I implement the 'HeaderStyle-CssClass="rgcItemName" ' inside the grid's columns.  The background color on the header doesn't change when you sort.  How can manipulate this css class (HeaderStyle-CssClass="rgcItemName" ) in order to activate the background color when you click a header in order for it to sort?

<telerik:GridTemplateColumn HeaderText="Name" HeaderStyle-HorizontalAlign="Center" HeaderStyle-CssClass="rgcItemName" ItemStyle-CssClass="rgcItemName"
                            HeaderTooltip="Full spelled out name of the primitive. May not exceed 200 characters." SortExpression="name">
                            <ItemTemplate>
                                <%#Container.DataItem("name").ToString%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>


HeaderStyle-CssClass="rgcItemName"

.rgcItemName
{
    width:13%;
}


your help would be appreciated!

Thanks!

German

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Sep 2011, 11:55 AM
Hello German,

Please refer to the blog post below which elaborates on this subject:

http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx


Regards,
Pavlina
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
German
Top achievements
Rank 1
answered on 01 Sep 2011, 05:47 PM
Thanks! =)
Tags
Grid
Asked by
German
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
German
Top achievements
Rank 1
Share this question
or