WORKS:
var data = JSON.parse(localStorage.getItem('some_stored_json_data'));
var template = kendo.template($("#template").text());
var content = kendo.render(template, data);
$("#scrollview").kendoMobileScrollView().data("kendoMobileScrollView").content("<!--" + content + "-->");
DOES NOT WORK:
var data = JSON.parse(localStorage.getItem('some_stored_json_data'));
var template = kendo.template($("#template").text());
var content = kendo.render(template, data);
$("#scrollview").kendoMobileScrollView().data("kendoMobileScrollView").content("<!--" + content + "-->");
$("#scrollview").kendoMobileScrollView().data("kendoMobileScrollView").content("<!--" + content + "-->"); // the only line different
I have ScrollView running fine with the "WORKS" code above (Templates and other HTML not attached).
However, though the above code that "DOES NOT WORK" is nonsense, but It reproduces the problem I am having when I am trying to update the contents of a ScrollView. Can someone please confirm that they can reproduce my problem and and if it is a bug or not.
KendoUI version: 2012.3.1315
Platform: Phonegap 2.2.0 on Android 2.2 API (running on Android 4.2 Phone).
Cheers,
Vaughn
var data = JSON.parse(localStorage.getItem('some_stored_json_data'));
var template = kendo.template($("#template").text());
var content = kendo.render(template, data);
$("#scrollview").kendoMobileScrollView().data("kendoMobileScrollView").content("<!--" + content + "-->");
DOES NOT WORK:
var data = JSON.parse(localStorage.getItem('some_stored_json_data'));
var template = kendo.template($("#template").text());
var content = kendo.render(template, data);
$("#scrollview").kendoMobileScrollView().data("kendoMobileScrollView").content("<!--" + content + "-->");
$("#scrollview").kendoMobileScrollView().data("kendoMobileScrollView").content("<!--" + content + "-->"); // the only line different
I have ScrollView running fine with the "WORKS" code above (Templates and other HTML not attached).
However, though the above code that "DOES NOT WORK" is nonsense, but It reproduces the problem I am having when I am trying to update the contents of a ScrollView. Can someone please confirm that they can reproduce my problem and and if it is a bug or not.
KendoUI version: 2012.3.1315
Platform: Phonegap 2.2.0 on Android 2.2 API (running on Android 4.2 Phone).
Cheers,
Vaughn