Kendo Mobile listview没有显示数据

时间:2013-10-23 17:49:46

标签: kendo-mobile

为什么我在视图中看不到任何内容?

的console.log(d);输出这个......

[{"id":1,"name":"a","age":1,"photo":"","group":"A"},
{"id":5,"name":"alan","age":22,"photo":"","group":"A"},
{"id":3,"name":"b","age":2,"photo":"","group":"B"},
{"id":2,"name":"c","age":3,"photo":"","group":"C"},
{"id":4,"name":"graham","age":43,"photo":"","group":"G"}] 

代码:显示

console.log(d);
$("#customers-group").kendoMobileListView({
    dataSource: kendo.data.DataSource.create({data: d, group: "group"}),
    template: "${name}",
    fixedHeaders: true
});

查看

<div data-role="view" id="customers" data-title="My Data" data-layout="layout-customers" data-show="show">
     <ul id="customers-group"></ul>
</div>

1 个答案:

答案 0 :(得分:0)

确保您使用的是kendo最新版本。因为kendo最新版本将支持分组,固定标题概念..

您的代码运行良好。

click

here for working sample