We use a kendo grid. I created a table in my cshtml file and in my js file, I bind it to data. My problem here is that the paging grid does not disappear. I need all the elements on the page, since we do not expect a big load. I tried to remove the page attribute, and I tried marking pageable: false . But I still see that the grid only displays 10 elements on one page and gives paging.
Using this.pager.element.hide() , we can hide the pager, but this will not solve the target, since the pager is hidden, but the pager is still being executed. So, now the elements starting with the 11th element are on the enext page, but we will not be able to go to it.
Here is the existing code. I deleted the unnecessary columns in the table. .CSHTML File:
<table style="width: 100%;" class='list-entity' id='inboxItems'> <thead> <tr> <th data-field='Actions' class="iconCell" style='width: 1%'> </th> <### THERE ARE MORE COLUMNS HERE AND THOSE HAVE CORRESPONDING COLUMNS IN SETTINGS ###> </tr> </thead> </table>
JS file:
var settings = { kendosettings: { dataSource: { data: requestItemsList, schema: { // required if get method will be used model: { id: "StepApproverKey" } }, group: [ { field: "GroupByAttribute", dir: "asc", aggregates: [ { field: "GroupByAttribute", aggregate: "count" }] }] }, sort: { field: "SubmittedOn", dir: "desc" }, sortable: true, pageable: false, scrollable: false, columns: [ { field: "Actions", title: "Actions", template: kendo.template($("#inboxrowEditTemplate").html()) }, { field: "StepApproverKey", hidden: true }, { field: "GroupByAttribute", hidden: true, groupHeaderTemplate: kendo.template($("#inboxrowgroupHeaderTemplate").html()), headerAttributes: { style: "width: 100%" } } ], selectable: "row", } }; $('#inboxItems').pdi().displaygrid(settings);
kendo-ui kendo-grid
Feroz
source share