题
我找不到有关扩展Kendo UI小部件或在Kendo UI网站上进行复合控件的任何官方文件。有什么例子说明了这一点吗?
解决方案
我将在此上撰写一篇文章,但是您可以在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
其他提示
谢谢!有了这个帮助,我可以做到这一点:
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;
}
不隶属于 StackOverflow