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

Dynamic swapping of themes

1 Answer 222 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dr.YSG
Top achievements
Rank 2
Dr.YSG asked on 17 Apr 2012, 08:13 PM
I would like to give the user the ability to change the theme on the fly (like your demos). Do you have a stripped down example of how to do this? (A dropdown menu that would change the style sheet ?)

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 18 Apr 2012, 03:04 PM
Hello Steve,

We don't have a stripped down example of this, but basically, you should remove a stylesheet reference (the <link> element) from the DOM and create another one with a new href attribute value. Take a look at the changeTheme() method in examples.js. There are also google-able examples in various websites.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Dr.YSG
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or