EasyUI Forum

General Category => General Discussion => Topic started by: manojvijayan on December 03, 2012, 04:03:51 AM



Title: get whole data in the grid
Post by: manojvijayan on December 03, 2012, 04:03:51 AM
I have created a grid panel.It has no of records. I want to get all data in the grid when click a button.This function is working, if select entire row using datagrid('getSelections');

is possible get entire data in the grid without select the rows?



Title: Re: get whole data in the grid
Post by: mzeddd on December 03, 2012, 10:25:50 AM
Try datagrid('getRows')


Title: Re: get whole data in the grid
Post by: Ellipsis on December 06, 2012, 03:10:54 AM
Not possible I think when the datagrid itself does not have all the data retrieved, think of serverside pagination etc.


Title: Re: get whole data in the grid
Post by: dandies on December 26, 2012, 07:11:50 PM
Try this one, then I think you will know what to do next :)
Code:
var myData = $('#my_datagrid_id').datagrid('getData');
alert('myData : ' + JSON.stringify(myData));