Kendo UI listview不与模板连接(Kendo UI listview doesn't connect with template)

编程入门 行业动态 更新时间:2024-10-26 19:33:25
Kendo UI listview不与模板连接(Kendo UI listview doesn't connect with template)

我创建了这个非常简单的JSfiddle来寻找帮助。 我实际上尝试将一些数据从Kendo数据源连接到listview。 我非常简化了这个例子以获得基本的帮助: http : //jsfiddle.net/5J3z5/25/ 。

var dataSource = new kendo.data.DataSource({ data: [ { id : 1 }, { id : 2 } ] }); $("#listView").kendoListView({ dataSource: dataSource, template: kendo.template($("#template").html()) });

我只是尝试在列表中显示id,我真的找不到我出错的地方。 非常感谢帮助。 谢谢。

I created this very simple JSfiddle to find some help. I actually try to connect some data from a Kendo datasource to a listview. I simplified the example very much to get some help with the basic: http://jsfiddle.net/5J3z5/25/.

var dataSource = new kendo.data.DataSource({ data: [ { id : 1 }, { id : 2 } ] }); $("#listView").kendoListView({ dataSource: dataSource, template: kendo.template($("#template").html()) });

I only try to display the id's in the list and I really can't find where i do go wrong. Help is very appreciated. Thanks.

最满意答案

jsFiddle有一个额外的';':

{ id : 2 };

以下是简化演示的工作版本: http : //jsbin.com/unEPAwAn/1/edit

The jsFiddle has an extra ';':

{ id : 2 };

Here is a working version of your simplified demo: http://jsbin.com/unEPAwAn/1/edit

更多推荐

帮助,非常,id,尝试,电脑培训,计算机培训,IT培训"/> <meta name="description"

本文发布于:2023-07-05 08:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1035450.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不与   模板   UI   Kendo   listview

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!