I'm using AngularJs to display dynamic data grid, I like it but now let me know it's a database Hooking in the table, with 60,000 records using server-side filtering and paging, and it appears that paging options for this plugin are only for client side paging.
Does anyone have the ability to work with server side paging? Do you have a code example?
See the code
& lt; Div class = "gridcontainer" & gt; & Lt; Div id = "grid1" ui-grid = "grid option" class = "grid" ui-grid-auto-resize ui-grid-pagination & gt; & Lt; / Div & gt; & Lt; / Div & gt; TrueColumnResize: True, paginationPageSizes: [/ code> Controller $ scope.gridOptions = {enableFiltering} 25, Id, width: 60, displayName: 'Id', 50, 75], endorsement page size: 25, column defects: [[// field: 'Id', width: 60, displayName: 'Id', enableFiltering: Incorrect field: 'id', 'id', enabled filtering: false}, {region: 'skill_count',}, {field: 'name'}]}; $ Scope.loadData = function () {skillService.getUnprovisioned (function (data) {$ scope.gridOptions.data = data;}); };
A server side pageization option is available in the API.
-> Use more registration
Here is an example for server side endorsement and sorting.
($ Scope, functions (new page, pages) {paginationOptions.pageNumber = newPage; paginationOptions.pageSize = pageSize; GetPage ();});
No comments:
Post a Comment