I am using DataSource for Kendo Template listview, but Unable to read data from list.json
dataSource = new kendo.data.DataSource({
transport:{
read: lists.json
}
});
dataSource.read();
var listView = $("#listView").kendoMobileListView({
dataSource: dataSource,
template: kendo.template($("#template").html()),
});
and
list.json:
[
{"name":"Customer0","address1":"0 Winding River Lane"},
{"name":"Customer1","address1":"1 Winding River Lane"},
{"name":"Customer10","address1":"10 Winding River Lane"},
{"name":"Customer100","address1":"100 Winding River Lane"}
]
guide me to know the problem.. thanks in advance.
dataSource = new kendo.data.DataSource({
transport:{
read: lists.json
}
});
dataSource.read();
var listView = $("#listView").kendoMobileListView({
dataSource: dataSource,
template: kendo.template($("#template").html()),
});
and
list.json:
[
{"name":"Customer0","address1":"0 Winding River Lane"},
{"name":"Customer1","address1":"1 Winding River Lane"},
{"name":"Customer10","address1":"10 Winding River Lane"},
{"name":"Customer100","address1":"100 Winding River Lane"}
]
guide me to know the problem.. thanks in advance.