change Platform/skin at run time

3 posts, 0 answers
  1. Mark
    Mark avatar
    25 posts
    Member since:
    Dec 2013

    Posted 20 Dec 2013 Link to this post

    So i have an application that starts up using the default platform.  I have added a button on the home screen that allows you to pick which platform you would like the UI to mimic.  My problem is actually getting the UI to change, or having it partially change.

    I have some javascript code like:

    var crmMobile = (function () {
        var mobileApp = null;

        return  {
                    init: function (cfg) {
                mobileApp = new kendo.mobile.Application(document.body, {
                    skin: settings.skin //this sets it to default
                });
            },
                changeSkin: function (skin) {  //I have tried used both of the below methods
                          mobileApp.skin = skin;
                          mobileApp.platform = skin;
                }
        }
    })



    Neither of those calls seems to change the the look.  any help would be much appreciated! Thanks.
  2. Mark
    Mark avatar
    25 posts
    Member since:
    Dec 2013

    Posted 20 Dec 2013 Link to this post

    Solved it.  I wasn't passing in my variable correctly.
  3. Kendo UI is VS 2017 Ready
  4. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2566 posts

    Posted 21 Dec 2013 Link to this post

    Hi Mark,

    I am glad you found the reason for the issues.

    In case you have any further questions, please do not hesitate to contact us.

    Regards,
    Kiril Nikolov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top