Change skin of Tabstrip using javascript

2 posts, 0 answers
  1. m chotu
    m chotu avatar
    10 posts
    Member since:
    Dec 2009

    Posted 17 Dec 2009 Link to this post

    I have a tabstrip on an .aspx page.  I have created a custom skin for this and set it during design time.  But during runtime, when the user clicks on a button on the page, I want to change the skin.  I want to do this in javascript. Right now, I am using javascript to change the background color of the tabstrip.  But the currently selected tab's background is not getting changed to the color of the background.  Could you please help?


  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 17 Dec 2009 Link to this post

    The skins are created on the server so I'm pretty sure you have to set the skin via server-side code. If you are looking to simply change the CSS of certain elements through javascript keep in mind that all of Telerik's skins use CSS Sprite Sheets, and therefore use images. If you want to change something by simply setting the HEX-value of a color you will have to use a skin that does not use sprite sheets.
Back to Top