This question is locked. New answers and comments are not allowed.
I've got a kendo grid, linked to a data source:-
This displays a grid, and shows the first 5 entries, however the page number is shown as 0, and paging doesn't work (even though there are 15 records in the data source - confirmed via fiddler). If the page size is changed however, paging starts to work.
How can I get paging to work from the start? - Note I want to use client side paging - not server side.
Thanks
<div style=
"width:400px; margin-top:15px; font-size:x-small;"
>
<div id=
"fileTable"
></div>
</div>
<script type=
"text/javascript"
>
$(document).ready(
function
() {
var
fileData =
new
kendo.data.DataSource({
transport: {
read:{
url:
"@Url.Content("
~/Import/GetFileList
")"
,
dataType:
"json"
}
},
schema:{
data:
"Files"
},
pageSize: 5,
page:1,
serverPaging:
false
});
$(
'#fileTable'
).kendoGrid({
dataSource: fileData,
columns: [
{
field:
"FileName"
,
title:
"File Name"
},
{
field:
"FileSize"
,
title:
"Size"
},
{
field:
"FileDateText"
,
title:
"Date"
}
],
pageable: {
refresh:
true
,
pageSizes:
true
,
previousNext:
true
},
scrollable:
false
});
});
This displays a grid, and shows the first 5 entries, however the page number is shown as 0, and paging doesn't work (even though there are 15 records in the data source - confirmed via fiddler). If the page size is changed however, paging starts to work.
How can I get paging to work from the start? - Note I want to use client side paging - not server side.
Thanks