BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi Gomtesh,
Thanks for using Syncfusion Products.
Query: please tell me about how can i get sorted record in grid according "todatvalue " also tell about ascending and descending. Please tell me solution in angular not in jquery
Do you want to get the Sorted Columns value such as if the “todate” column is sorted, then the sorted column value field “todate” and the direction is “ascending/ descending” or something else? Or you want to get the complete sorted grid records? Kindly explain the scenario more clearly. So that we could provide you with the solution.
Regards,
Balaji Marimuthu
Hi Gomtesh,
Based on your requirement we have created the sample and the same can be downloaded from the following link.
Sample: Sample-118341.zip
<div id="Grid" ej-grid e-datasource="filtered> . . . . . . </div> <script> angular.module('listCtrl', ['ejangular']) .controller('PhoneListCtrl', function ($scope, $compile,$filter) { . . . . . . $scope.filtered = $filter("orderBy")($scope.data1, "+to_date", true); }); </script> |
Your requirement is achieved by using the angular filter service in the Grid, and the sorting performed by the orderBy in angular. And the $scope.filtered record is binding to the Grid dataSource. We can get the sorted records by using the $scope.filtered.
Are you asking the mentioned behavior in your Grid or you need anyother requirement additionally, could you please provide more information regarding your requirement that will helpful to provide better solution ASAP.
Regards,
Balaji Marimuthu