2012-02-16 57 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; 
}