We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

I want to access grid fitler data

 <div   ej-grid e-datasource="data" ng-init="setTargetList(@Newtonsoft.Json.JsonConvert.SerializeObject(@Model, new Newtonsoft.Json.JsonSerializerSettings { ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver() }))"

I am creating grid using Angualar js

 $scope.setTargetList = function (targetList) {

            $rootScope.data = targetList.targetViewModelList;
            $rootScope.data = $filter('orderBy')($rootScope.data, 'targetName');

            $rootScope.accessGroupData = $filter('orderBy')(targetList.accessGroupMarkingViewModelList, 'markingString');
            $rootScope.accessGroupData.splice(0, 0, { markingString: "Unrestricted" });


After applying filtering I want to access filterdata. from grid view.
How to access only filterdata from gridview.

1 Reply

SA Saravanan Arunachalam Syncfusion Team October 12, 2015 06:23 AM UTC

Hi Bharat,

We analyzed your code snippet and found that you bound the filtered data to the grid. So, we suggested you to get the grid view data using “model.dataSource” method of Grid. Please refer to the following screenshot.


If you filter the data using Grid filter actions, after bound the datasource to grid, we suggest you to get the filtered data using “getFilteredRecords” method of Grid.  Please refer to the below user guide link:



Saravanan A.

Live Chat Icon For mobile
Up arrow icon