2012-02-16 31 views

回答

10

我要写这个帖子,但你可以签在GitHub以下项目创建的插件。目前有一种复合控制这个...

https://github.com/kendo-labs/kendo-plugins

下面是一个合成的自动完成和一个ListView现场小提琴例子...

http://jsfiddle.net/burkeholland/G2f4a/embedded/result/

// thanks for making put a useless comment here stackoverflow 
+0

现在,我们正在谈论... :-)唯一的原因,我并没有开始使用kendoui是因为我无法找到如何扩展。做得好。谢谢荷兰。 – 2012-04-26 11:14:22

+1

你能否更新链接,好像坏了! – OnaBai 2013-07-04 23:18:49

+1

无法编辑帖子,因为它需要小提琴链接代码。更新后的链接kendo-plugins:https://github.com/kendo-labs/kendo-plugins – 2013-11-19 20:31:43

7

有现在官方文档: How to Create a Custom Widget

下面就以半链接官方community plugins

这里是由约翰·DeVight创建的小部件的一些examples

An SO post showing a simple example这延长了移动列表视图。

+0

今天应该是公认的答案。但是,上面的链接并不包括在Kendo与AngularJS一起使用时创建自定义小部件的情况,该授权并不是OP所要求的,但是仍然会对知道:)有帮助 – AsGoodAsItGets 2016-10-27 09:23:15

1

谢谢!在这方面帮助我能做到这一点:

kendo.data.DataSource.prototype.dataFiltered = function() { 
    // Gets the filter from the dataSource 
    var filters = this.filter(); 

    // Gets the full set of data from the data source 
    var allData = this.data(); 

    // Applies the filter to the data 
    var query = new kendo.data.Query(allData); 

    // Returns the filtered data 
    return query.filter(filters).data; 
}