Hello - This question is regarding the usage of kendo.init() method in a mobile app. I am trying to inject some kendo ui markup using an ajax call, *after* the kendo app has been instantiated. For brevity's sake, I am showing some oversimplified code, see below:
<div id="container" data-role="content">
<ul data-role="listview" id="mylist">
<li> item 1 </li>
<li> item 2 </li>
<li> item 3 </li>
<li> item 4 </li>
</ul>
</div>
Once the ajax call has returned and the above code has been appended to the kendo view, I am doing the following:
kendo.init($("#container");
This, however doesn't seem to work - the list looks like an HTML list and not a Kendo listview widget. On the other hand, if I individually initialize the listview widget using $("#mylist").kendoMobileListView(), it works.
Could you provide an explanation to this?
I am using the init() method as described in the docs (http://docs.kendoui.com/getting-started/data-attribute-initialization). I am also curious to know why the init() method is not in the API reference.
Thanks,
<div id="container" data-role="content">
<ul data-role="listview" id="mylist">
<li> item 1 </li>
<li> item 2 </li>
<li> item 3 </li>
<li> item 4 </li>
</ul>
</div>
Once the ajax call has returned and the above code has been appended to the kendo view, I am doing the following:
kendo.init($("#container");
This, however doesn't seem to work - the list looks like an HTML list and not a Kendo listview widget. On the other hand, if I individually initialize the listview widget using $("#mylist").kendoMobileListView(), it works.
Could you provide an explanation to this?
I am using the init() method as described in the docs (http://docs.kendoui.com/getting-started/data-attribute-initialization). I am also curious to know why the init() method is not in the API reference.
Thanks,