This is a migrated thread and some comments may be shown as answers.

Change toolbar skin in client side

2 Answers 76 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Maziar
Top achievements
Rank 1
Maziar asked on 29 Apr 2013, 07:30 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Jun 2013, 11:01 AM
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.
0
Maziar
Top achievements
Rank 1
answered on 27 Jun 2013, 12:20 PM
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
Tags
ToolBar
Asked by
Maziar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Maziar
Top achievements
Rank 1
Share this question
or