How invoke angular datatable pagination refresh callback after data update?

Issue I have angular datatable config which works fine. My config looks like vm.dtOptions = DTOptionsBuilder.newOptions(). withPaginationType(‘full_numbers’). //withOption(‘ajax’, { // url: ‘rest/get/’+entityName, // type: ‘GET’ //}). withOption(‘serverSide’, true). withOption(‘ajax’, function(data, callback, settings) { EntityManager.get({entity:entityName,action:’get’,start:data.start,length:data.length}).$promise.then(function(response) { console.log(‘response’); console.log(response); vm.objectList = response.data;

Continue reading

AngularJS ng-grid's method "gridApi.pagination.on.paginationChanged" within onRegisterApi not being called

Issue I’m using AngularJS ng-grid, where assigning the $scope.gridOptions associated onRegisterApi with function as listed in my code below: onRegisterApi: function (gridApi) { alert(“in”); $scope.gridApi = gridApi; gridApi.selection.on.rowSelectionChanged($scope, function (row) { alert(“in”); var msg = ‘row selected ‘ + row.isSelected;

Continue reading

Page-change event not working in ng2-bootstrap

Issue I am trying to implement the pagination in my angular2 app with the ng2-bootrap. am following http://valor-software.github.io/ng2-bootstrap/#pagination my app.html <div> <div class=”col-lg-12 text-right”> <pagination [totalItems]=”bigTotalItems” (page-changed)=”pageChanged($event)” [(ngModel)]=”bigCurrentPage” [maxSize]=”maxSize” class=”pagination-sm” [boundaryLinks]=”true”></pagination> </div> </div> my component import { Component, View, Inject}

Continue reading

How can I do server-side pagination with ng-table?

Issue My code is $scope.loadQuestions = function() { $scope.questionCount = 0; $scope.questionTable = new NgTableParams({ count: [] }, { total: 19387, getData: function($defer, params) { $scope.filter.sort = params.orderBy(); $scope.filter.page = params.page(); return $http.get(“/api/questions”, { params: $scope.filter }).then(function(response) { $scope.questionCount =

Continue reading

Angular: How will i link the pageSize of Mat-paginator to render that amount of items?

Issue I have a mat-accordion with multiple mat-expansion-panel. I want to apply pagination for the accordion. Below is my code: HTML <mat-accordion displayMode="flat" multi class="mat-table"> <section class="mat-elevation-z2 mat-header-row"> <span class="mat-header-cell">User Id</span> <span class="mat-header-cell">Name</span> <span class="mat-header-cell">Exam Name</span> <span class="mat-header-cell">Exam Category</span> </section>

Continue reading

Pagination directive in angular-material

Issue Is there any pagination directive in angular-material to use with md-list? These do work, but are not material design based. https://github.com/brantwills/Angular-Paging https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination Solution I’m not sure that you can mix these 2 projects but I would look to use

Continue reading