Friday, 15 March 2013

javascript - Pagination on Kendo UI Grid is not working -



javascript - Pagination on Kendo UI Grid is not working -

i'm displaying grid remote data, if don't add together pagination total set of info displayed, of course of study not desired.

the next code i'm using display info on grid:

var ds = new kendo.data.datasource({ transport: { read: { url: "http://127.0.0.1:81/sismosservice.svc/usuario/index", datatype: "json" } }, schema: { data: "response" }, pagesize: 5 }); $("#usuariosgrid").kendogrid({ pageable: { refresh: true }, columns: [ { field: "usuarioid", title: "id", width: "100px" }, { field: "nombre", title: "nombre", width: "100px" }, { field: "apellidop", title: "apellido paterno", width: "100px" }, { field: "apellidom", title: "apellido materno", width: "100px" }, { command: [{ text: "editar", click: editfunction }, { text: "eliminar", click: deletefunction }], title: " ", width: "200px" } ], datasource: ds });

this renders grid 5 items on it, that's it, can't navigate through rest of entries. number of pages , items display marked zero, disabling navigation controls.

am missing in cofiguration? help can provide.

when paging done in server (check serverpaging), need homecoming total number of records. see total information.

javascript kendo-ui kendo-grid

No comments:

Post a Comment