Kendo UI Grid settings -
this grid settings:
$scope.documentsources = new kendo.data.datasource({ transport: { read: { fun: console.log("read"), url: servicebase + "documents/getlistdocuments", type: "post", datatype: "json", contenttype: 'application/json', beforesend: function (req) { req.setrequestheader('authorization', authglobalservice.getauthorizationdata().token); } }, update: { fun: console.log("update"), url: servicebase + "documents/getlistdocuments", type: "post", datatype: "json", contenttype: 'application/json', beforesend: function (req) { req.setrequestheader('authorization', authglobalservice.getauthorizationdata().token); } }, save: { fun: console.log("create"), url: servicebase + "documents/setdocument", type: "post", datatype: "json", data: 'hello hello', contenttype: 'application/json', beforesend: function (req) { req.setrequestheader('authorization', authglobalservice.getauthorizationdata().token); } }, parametermap: function (options) { if (options.filter) { options.filter = options.filter.filters; } return json.stringify(options); } }, sort: { field: "dateadded", dir: "desc" }, schema: { data: "data", total: "total" }, pagesize: 10, serverpaging: true, serversorting: true, serverfiltering: true }); $scope.msg = false; $scope.documentlistgridoptions = { datasource: $scope.documentsources, selectable: 'row', scrollable: false, sortable: true, resizable: true, filterable: { extra: false }, pageable: true, change: function (idselectedvote) { $scope.$apply(function () { $scope.setselected(idselectedvote.sender.dataitem(idselectedvote.sender.select())); }); }, datavaluefield: "id", columns: [{ title: "id dokumentu", field: "documentid", hidden: true }, { title: "nazwa dokumentu", field: "namedocument", }, { title: "opis", field: "descriptiondocument", }, { title: "data dodania", field: "dateadded", template: "#= kendo.tostring(kendo.parsedate(dateadded, ''), 'mm/dd/yyyy hh:mm') #" }, { title: "nazwa pliku", field: "filename" }] }; and have problem because counting rows doesn't work , neither page because have 1 row. on ss below.
http://i.stack.imgur.com/56m7j.png
can me this? it's wrong grid settings.
Comments
Post a Comment