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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

I want to access grid fitler data

Thread ID:





120737 Oct 9,2015 04:57 AM UTC Oct 12,2015 06:23 AM UTC JavaScript 1
Tags: ejGrid
Bharat Buddhadev
Asked On October 9, 2015 04:57 AM UTC

 <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.

Saravanan Arunachalam [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon