Change css of unselected tab

2 posts, 0 answers
  1. Reshma
    Reshma avatar
    8 posts
    Member since:
    Oct 2013

    Posted 18 Nov 2013 Link to this post

    Hi,

    I have radtabstrip with two(or many) tabs in it.
    I want to change font weight of unselected tab.

    How can i do that?I tried

    function

     

     

    fnTabUnselected(sender, eventArgs) {

     

     

     

    var tab = eventArgs.get_tab();

     

     

     

    var tabname = tab.get_text();

     

    $(

     

    "tab").addClass("unselect");

     

    }
    but not working...

  2. Magdalena
    Admin
    Magdalena avatar
    487 posts

    Posted 18 Nov 2013 Link to this post

    Hi Reshma,

    Thank you for contact us.

    The easiest way to achieve the change of the styles in your project is by applying a stylesheet. Please, apply the following CSS code snippet to change font weight of no selected tab:
    .RadTabStrip .rtsLI .rtsTxt {
        font-weight: 800;
    }
    .RadTabStrip .rtsLI .rtsSelected .rtsTxt {
        font-weight: normal;
    }

    Regards,
    Magdalena
    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.
Back to Top