Contextual Tab

2 posts, 0 answers
  1. Dhaval
    Dhaval avatar
    1 posts
    Member since:
    Dec 2011

    Posted 30 Sep 2013 Link to this post


    How can i assing CssClass to RibbonBarContextualTabGroup? Here is my code.

    <style type="text/css">
            .Ctabformat
      {
        font-weight: bold;
        text-decoration: underline;     
      }   
    </style>

    <ContextualTabGroups>
        <telerik:RibbonBarContextualTabGroup Text="Test" Active="true" CssClass="Ctabformat">
            <telerik:RibbonBarTab Text="Tab1" Font-Bold="true" ></telerik:RibbonBarTab>
        </telerik:RibbonBarContextualTabGroup>
    </ContextualTabGroups>

    Somehow it is not applying format specified in CssClass.

  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 03 Oct 2013 Link to this post

    Hello Dhaval,

    To set the needed styles to the ContextualTabGroups I would suggest that you increase the specificity of the selector. For example you can use the following definition instead of the current one that you have.
    <style type="text/css">
           .new {
               font-weight: bold !important;
               text-decoration: underline !important;
           }
       </style>


    Regards,
    Kate
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top