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

change Platform/skin at run time

2 Answers 81 Views
Application
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 20 Dec 2013, 07:35 PM
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 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 20 Dec 2013, 08:23 PM
Solved it.  I wasn't passing in my variable correctly.
0
Kiril Nikolov
Telerik team
answered on 21 Dec 2013, 07:04 AM
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!
Tags
Application
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or