Home » UI Grid (ng-grid) Paging / Pagination using Angular Example

UI Grid (ng-grid) Paging / Pagination using Angular Example

Today, We want to share with you UI Grid (ng-grid) Paging / Pagination using Angular Example.In this post we will show you Angularjs ng-grid pagination example, hear for Angularjs ui grid pagination example we will give you demo and example for implement.In this post, we will learn about Angularjs pagination / paging for grid data with ui grid with an example.

UI Grid (ng-grid) Paging / Pagination using Angular Example

There are the Following The simple About angularjs grid example with paging Full Information With Example and source code.

As I will cover this Post with live Working example to develop How to implement paging for ui grid in angularjs example, so the ui-grid columndefs is used for this example is following below.

Read Also:  Laravel Soft Delete Unique validations

AngularJS UI Grid (ng-grid) Paging / Pagination Example

Angular is a platform for building mobile & desktop web Based user friendly and light weight applications.Angular,It’s TypeScript-based open-source Angularjs web application framework.

index.html

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Angularjs UI-Grid Paging Example - https://www.pakainfo.com/
</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="https://ui-grid.info/release/ui-grid.js"></script>
<link rel="stylesheet" href="https://ui-grid.info/release/ui-grid.css" type="text/css">
<script type="text/javascript">
var angularTutorialApp = angular.module("gridSliderRoot", ["ui.grid", "ui.grid.pagination"]);
angularTutorialApp.controller("gridSliderController", function ($scope) {
$scope.gridOptions = {
	paginationPageSizes: [25, 50, 75],
	paginationPageSize: 5,
	columnDefs: [
	{ field: 'name' },
	{ field: 'age' },
	{ field: 'address' }
	],
	onRegisterApi: function (gridApi) {
		$scope.grid1Api = gridApi;
	}
};
$scope.members = [
{ name: "Gondaliya Keyur", age: 10, address: 'Rajkot' },
{ name: "Sejal Ramani", age: 30, address: 'Diu' },
{ name: "Parag Shukla", age: 29, address: 'Diu' },
{ name: "Nilesh Chovatiya", age: 25, address: 'Dhamana' },
{ name: "Bharat Sakhiya", age: 27, address: 'Surat' },
{ name: "Sachin Tendulkar", age: 38, address: 'Rajkot' },
{ name: "Krishna Nogboys", age: 25, address: 'Ahemdabad' },
{ name: "Ravi Dhameliya", age: 7, address: 'Rajkot' },
{ name: "Ghetiya Neha", age: 22, address: 'Vadodara' },
{ name: "Nilesh Donga", age: 23, address: 'California' },
{ name: "Pramit Shah", age: 34, address: 'Atlanta' },
{ name: "Jigar Shah", age: 29, address: 'Repalle' },
{ name: "Pratik Shah", age: 19, address: 'Gondal' },
{ name: "Jalpa Pansuriya", age: 27, address: 'Surat' }
];
$scope.gridOptions.data = $scope.members;
});
</script>
<style type="text/css">
.myGrid {
width: 500px;
height: 232PX;
}
</style>
</head>
<body ng-app="gridSliderRoot">
<h2>AngularJS UI Grid Paging Example</h2>
<div ng-controller="gridSliderController">
<div ui-grid="gridOptions" ui-grid-paginationclass="myGrid"></div>
</div>
</body>
</html>

Web Programming Tutorials Example with Demo

Read :

Read Also:  Top 10 Great Cloud Storage File Sharing Services

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about ui-grid-cell template.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.


Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  Laravel MySQL Get Last Inserted ID
  2. Read Also:  Get Radio Button value using jQuery Example
  3. Read Also:  Angular UI Grid Table Tutorial With Example
  4. Read Also:  ng-mouseenter Event using Angular Example
  5. Read Also:  Convert Json String to Array in VueJS
  6. Read Also:  UI Grid Filtering using Angular Example
  7. Read Also:  UI Grid (ng-grid) using Angular Example
  8. Read Also:  Concat Multiple MySQL Rows GROUP_CONCAT
  9. Read Also:  jquery datetimepicker change Date format Dynamically
  10. Read Also:  Angular 6 Chart Example using Charts Package

Leave a Comment

Your email address will not be published. Required fields are marked *