Lets have a list view, initialized with data from variable employees this way:
<ul id="employeesListView" data-role="listview" data-title="Employee list title" data-source="employees" data-template="employees-template" />
If we have updated the variable employees, the listview stays the same. To force update, we have to do this:
$("#employeesListView").kendoMobileListView({ dataSource: employees,
template: $("#employees-template").text(),
});
No comments:
Post a Comment