Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ds = new kendo.data.DataSource({
- transport: {
- read: {
- url: "http://127.0.0.1:81/SismosService.svc/usuario/index",
- dataType: "json"
- }
- },
- schema: {
- data: "Response",
- total: "Count"
- },
- serverPaging: true,
- pageSize: 2
- });
- $("#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
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement