show/hide paging
How can I hide/show paging(enablePaging) in angular ng-grid? I want to get enablePaging from response Thanks
What version are you using.
Have you consulted the paging tutorial? http://ui-grid.info/docs/#/tutorial/215_paging
Thank you! I think I'm using the latest version ng-grid since I downloaded it from NuGet packeges
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.
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
$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?
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.
ok, thanks