剑道UI网格虚拟滚动带来无限的ajax点击率
我正在加载一个启用了虚拟滚动选项的剑道UI网格,当我在网格内无限点击get grid data方法时,由于未识别的原因向下滚动 我的页面也有角JS 页码始终作为1发送,但至少应增加到2 网格定义如下:剑道UI网格虚拟滚动带来无限的ajax点击率,ajax,kendo-grid,lazy-loading,Ajax,Kendo Grid,Lazy Loading,我正在加载一个启用了虚拟滚动选项的剑道UI网格,当我在网格内无限点击get grid data方法时,由于未识别的原因向下滚动 我的页面也有角JS 页码始终作为1发送,但至少应增加到2 网格定义如下: dataSource: { serverPaging: true, serverSorting: true, serverFiltering: true, pageSize: 10, transport: { read: URL },
dataSource: {
serverPaging: true,
serverSorting: true,
serverFiltering: true,
pageSize: 10,
transport: {
read: URL
},
schema: {
data: function(data) {
/* Few business filter operation done here */
return data.Items;
},
total: function(data) {
if (data.Items != null && data.Items.length > 0) {
// Every record of the current data set has total employees count
// Thus returning the first value
return data.Items[0].totalEmployees;
}
return 0;
},
scrollable: {
virtual: true
},
sortable: true,
columns: columns,
dataBound: function(arg) {
/* few more business operations */
},
scrollable: {
virtual: true
},
serverPaging: true,
serverSorting: true,
serverFiltering: true,
editable: {
'mode': 'inline',
'createAt': 'top'
},
显示无限点击率的图像:
我不止一次加载了kendo.all.js文件,精确地加载了三次。我确保它只加载一次,问题就解决了