Advertisement
loonerz

data source

Feb 12th, 2013
1,782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var ds = new kendo.data.DataSource({
  2.         transport: {
  3.             read: {
  4.                 url: "http://127.0.0.1:81/SismosService.svc/usuario/index",
  5.                 dataType: "json"
  6.             }
  7.         },
  8.         schema: {
  9.             data: "Response",
  10.             total: "Count"
  11.         },
  12.         serverPaging: true,
  13.         pageSize: 2
  14.     });
  15.  
  16.     $("#usuariosGrid").kendoGrid({
  17.         pageable: {
  18.             refresh: true
  19.         },
  20.         columns: [
  21.             { field: "UsuarioId", title: "ID", width: "100px" },
  22.             { field: "Nombre", title: "Nombre", width: "100px" },
  23.             { field: "ApellidoP", title: "Apellido Paterno", width: "100px" },
  24.             { field: "ApellidoM", title: "Apellido Materno", width: "100px" },
  25.             { command: [{  text: "Editar", click: editFunction }, { text: "Eliminar", click: deleteFunction }], title: " ", width: "200px" }
  26.         ],
  27.         dataSource: ds
  28.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement