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

Viewmodel not displaying in mobile

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anupam
Top achievements
Rank 1
Anupam asked on 08 Dec 2014, 07:52 AM
Hello. I have created a Kendo UI core widget project. I have created a viewmodel source code as home.js and am try to bind it with div of indexx.html.. 

This is the home.js.

var vm = kendo.observable({
    isLoggedIn: true,
    isLoggedIn1: true,
   <other variables, functions});
kendo.bind(document.body($("#view2")), vm, kendo.mobile.ui);

After the binding when i run the code in iphone or android simulator it works perfectly, but when I check it in device, the div tag and its elements are not rendered. If If i remove script tag reference of home.js the page is rendered perfectly fine but then there is no functionality.

Please advice.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 09 Dec 2014, 02:52 PM
Hi Anupam,

If I understood correctly you are building a Kendo Mobile Application. If that is the case please do not cal manually kendo.bind but use the approach described in this help article.

Regards,
Alexander Valchev
Telerik
 
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
Anupam
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or