Change toolbar skin in client side

3 posts, 0 answers
  1. Maziar
    Maziar avatar
    5 posts
    Member since:
    May 2011

    Posted 29 Apr 2013 Link to this post

    Hello,
    I am using a RadToolbar Control within a page where almost there is no post back.
    One of the features that this page has, is multiple themes.

    Now, I need to set the skin of the RadToolbar based on my theme. 
    I see that the client side API of the RadToolbar object contains a "get_skin" method which correctly returns the name of the server-side assigned skin name. But the object has no "set_skin" method. 

    All I am asking is that whether there is a way to change a toolbar's skin which client side code, or not; and if not, what other ways do you suggest.

    Thanks
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Jun 2013 Link to this post

    Hi Maziar,

    One tricky solution I found is to disable the embedded skins and base stylesheeets and since you have multiple themes, you can find all the corresponding stylesheets at the time of rendering. Add them to your code and download all the CSS class images that are associated with the stylesheet. Create you own .CSS files with these and use javascript to change these CSS files.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maziar
    Maziar avatar
    5 posts
    Member since:
    May 2011

    Posted 27 Jun 2013 Link to this post

    Hi Shinu,
    Thanks for your response. I did the same thing two months ago, and here is my StackOverflow Question and Answer link:
    http://stackoverflow.com/questions/16273461/change-teleriks-asp-net-radtoolbar-skin-with-client-side-code

    Regards,
    Maziar
Back to Top