ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

show/hide paging

Open atarason opened this issue 11 years ago • 7 comments

How can I hide/show paging(enablePaging) in angular ng-grid? I want to get enablePaging from response Thanks

atarason avatar Dec 24 '14 17:12 atarason

What version are you using.

Have you consulted the paging tutorial? http://ui-grid.info/docs/#/tutorial/215_paging

PaulL1 avatar Dec 24 '14 20:12 PaulL1

Thank you! I think I'm using the latest version ng-grid since I downloaded it from NuGet packeges

atarason avatar Dec 24 '14 20:12 atarason

OK, not sure if that's 2.x or 3.0, and the interface can be quite different. When you include it, is it ui-grid that you include, or ng-grid? If ui-grid, then you're on 3.0 something. And if so, I'd recommend getting the latest version - potentially build from source.

PaulL1 avatar Dec 24 '14 22:12 PaulL1

I'm using ng-grid :

  • ng-grid JavaScript Library
  • Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md
  • License: MIT (http://www.opensource.org/licenses/mit-license.php)
  • Compiled At: 08/04/2014 16:09

atarason avatar Dec 24 '14 22:12 atarason

$scope.gridOptions = { headerRowHeight: 45, rowHeight: 45, data: 'partners', totalServerItems: 'totalServerItems', multiSelect: false, enableCellEditOnFocus: false, enableRowSelection: true, selectedItems: [], columnDefs: 'colDef', pagingOptions: $scope.pagingOptions, showFooter: $scope.enablePaging, enablePaging: $scope.enablePaging, enableSorting: $scope.enableSorting };

Can I get value 0f $scope.enablePaging from response?

atarason avatar Dec 24 '14 22:12 atarason

OK, I'm much less familiar with 2.x. I'd suggest looking through the 2.x documentation at http://angular-ui.github.io/ng-grid/, and particularly the server side paging example.

PaulL1 avatar Dec 25 '14 02:12 PaulL1

ok, thanks

atarason avatar Dec 25 '14 07:12 atarason