0
我正試圖加載一些到劍道網格的grecords。如果我收到10條記錄,它將很快加載。如果我有超過500個,它需要花費很多時間來加載。劍道網格緩慢加載
能這個任意一個幫助嗎?
下面是我的代碼:無分頁加載數據
$("#gridExistingpartners").kendoGrid({
columns: [{
field: "PARTNER_ID",
title: "#",
filterable: false,
width: 85
},
{
field: "NAME",
title: "Partner Name",
width: 185
},
{
field: "PARTNER_TYPE",
title: "Partner Type",
width: 100
},
{
command: { name:"View",text: "View", click: ViewExistingPartners },
title: "Edit",
width: 85
},
{
command: { name:"Add",text: "Add", click: AddExistingPartners },
title: "Add",
width: 85
}],
height: 250,
autoBind: true,
scrollable: true,
sortable: true,
serverPaging: true,
serverSorting: true,
serverFiltering: true,
refresh: true,
filterable: {
extra: false,
operators: {
string: {
startswith: "Starts with",
eq: "Is equal to",
neq: "Is not equal to"
}
}
},
pageable: {
refresh: true,
pageSizes: true,
buttonCount: 5,
pageSize: 15
}
});
你的代碼看起來不對,serverPaging,serverSorting和過濾是數據源和我沒有看到一個數據源。你將不得不做serverPaging來解決你的問題。首先加載15-20個數據,當用戶進行分頁時加載下一個15-20個數據。 – cwishva 2014-10-01 11:24:37