Get all Data from ejGrid

Hello,

As per your documentation I have used below code to get data from ejGrid.

var gridObj = $("#ClassEngGrid").ejGrid("instance");
        var data = gridObj._currentJsonData;

But, the problem here is, I am getting only current page data. I need to get all the data loaded in ejGrid in my JavaScript function using ejGrid instance.
How can I do it?

regards
A R Mohan


1 Reply

VN Vignesh Natarajan Syncfusion Team November 23, 2017 12:51 PM UTC

Hi Mohan, 

Thanks for using Syncfusion products. 

We have analyzed your query and we have achieved your requirement thorough dataSource property of the Grid.  

Refer the below code snippet 

var gridObj = $("#Grid").data("ejGrid");   
gridObj.model.dataSource; 

Refer the below screenshot for the output 

 

Note: This method will work only for the local data. 

Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon