i have a kendo grid wich is binded dynamiclay onclik button , the first click button i can make groupement of columns then after that in the second click or else i can't
我有一个kendo grid wich是binded dynamiclay onclik按钮,第一个单击按钮我可以制作列的集合然后在第二次点击后,否则我不能
ther is my kendo grid code:
这是我的剑道网格代码:
var grid = $("#grid").kendoGrid({
dataSource: {
data: gridData,
schema: {
model: model,
parse: parseFunction
},
pageSize: 20
},
scrollable : true,
sortable: true,
groupable: true,
pageable: true,
resizable: true,
refresh: true,
navigatable: true,
});
1 个解决方案
#1
Please see the linked example in above comments. Setting the
请参阅上面评论中的链接示例。设置
groupable
property alone will not group the data. You need to explicitly call the group method
仅财产不会对数据进行分组。您需要显式调用group方法
$("#grid").data("kendoGrid").dataSource.group({ field: "foo" });
#1
Please see the linked example in above comments. Setting the
请参阅上面评论中的链接示例。设置
groupable
property alone will not group the data. You need to explicitly call the group method
仅财产不会对数据进行分组。您需要显式调用group方法
$("#grid").data("kendoGrid").dataSource.group({ field: "foo" });