Dynamic swapping of themes

2 posts, 0 answers
  1. Dr.YSG
    Dr.YSG avatar
    210 posts
    Member since:
    Dec 2009

    Posted 17 Apr 2012 Link to this post

    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 ?)

  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 18 Apr 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top