Grid .HeaderStyle.CssClass

2 posts, 0 answers
  1. Tim R
    Tim R avatar
    132 posts
    Member since:
    Feb 2006

    Posted 27 Mar 2009 Link to this post

    Using version 2008.1.619.20

    If I do this in codebehind:


    shouldn't I see something like the following in the generated HTML at runtime?
    <th scope="col" class="MyHeaderStyle">

    What I'm seeing is this:

       <th scope="col" class="GridHeader_Default">

  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 27 Mar 2009 Link to this post

    Hello Tim-

    The reason you're seeing that result is due to the way the ASP.NET and Telerik skinning mechanism works. When you have a skin applied to your Grid (which you do by default), it overrides local CssClassName values. To use local CssClass values, you must turn-off skinning by setting the Skin property to "" (empty string). 

    If you want to customize the appearance of your Grid header and keep skinning turned-on, check out these articles in the online help docs for guidance on customizing RadGrid skins:

    Hope that helps!
Back to Top