UI Grid Sorting using Angular Example

Today, We want to share with you UI Grid Sorting using Angular Example.In this post we will show you Angularjs ui grid module with sorting feature example, hear for Sort grid data in angularjs using ng-grid / ui grid with example we will give you demo and example for implement.In this post, we will learn about angularjs grid example with paging with an example.

UI Grid Sorting using Angular Example

There are the Following The simple About UI Grid with sorting example in angularjs Full Information With Example and source code.

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

Read Also:  kill process linux

AngularJS UI Grid Sorting 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 Sorting 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"]);
angularTutorialApp.controller("gridSliderController", function ($scope) {
	$scope.gridOptions = {
		enableSorting: true,
		columnDefs: [
		{ field: 'name' },
		{ field: 'age' },
		{ field: 'address', enableSorting: false }
		],
		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: 'Bangalore' },
	{ name: "Bharat Sakhiya", 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 Sorting Example</h2>
<div ng-controller="gridSliderController">
<div ui-grid="gridOptions" class="myGrid"></div>
</div>
</body>
</html>

Web Programming Tutorials Example with Demo

Read :

Read Also:  UI Grid (ng-grid) using Angular Example

Summary

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

I hope you get an idea about ui-grid angular 6.
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.