I am trying to achieve serverside paging and sorting with Kendo grid.
I have done the following which is working fine, but this is completely in the JavaScript,
("#appointmentsGrid").kendoGrid({
columns: [
{ field: "MemberFirstName", title: "Member<br/>First Name" },
{ field: "MemberLastName", title: "Member<br/>Last Name" }
],
dataSource: new kendo.data.DataSource({
serverPaging: true,
serverSorting: true,
transport: {
read: {
url: "/AppointmentScheduling/GetScheduledAppointments",
data: additionalData
}
},
pageSize: 10,
schema: { data: "data", total: "total" }
}),
pageable: true,
sortable : true
});
Can anyone has any idea how to achieve the same functionality through razor View, if so can you please give the controller sample code too.
Since it is in javaScript, there is no intellisense and hard to find out all the options that i can give it for a column.
I have done the following which is working fine, but this is completely in the JavaScript,
("#appointmentsGrid").kendoGrid({
columns: [
{ field: "MemberFirstName", title: "Member<br/>First Name" },
{ field: "MemberLastName", title: "Member<br/>Last Name" }
],
dataSource: new kendo.data.DataSource({
serverPaging: true,
serverSorting: true,
transport: {
read: {
url: "/AppointmentScheduling/GetScheduledAppointments",
data: additionalData
}
},
pageSize: 10,
schema: { data: "data", total: "total" }
}),
pageable: true,
sortable : true
});
Can anyone has any idea how to achieve the same functionality through razor View, if so can you please give the controller sample code too.
Since it is in javaScript, there is no intellisense and hard to find out all the options that i can give it for a column.