EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: acreonte82 on March 28, 2020, 08:31:24 AM



Title: Export all data of a datagrid in server side page mode
Post by: acreonte82 on March 28, 2020, 08:31:24 AM
Hello to all!
I've a datagrid with server side pagination and a button to download the data in file excel.
My need is: is it possible to download the entire data of the datagrid using the server side pagination?

The method $(dg).datagrid('getData') get the paginated rows, so if i've 10 record per page i download just the first 10 record

Some one has solved this "problem" without client side pagination way?


Title: Re: Export all data of a datagrid in server side page mode
Post by: jarry on March 29, 2020, 11:37:12 PM
When the server side pagination is enabled, the datagrid only stores the current page rows. You can't retrieve all the entire data from the client side. So the possible solution is to download from your server side instead of the client side.


Title: Re: Export all data of a datagrid in server side page mode
Post by: acreonte82 on March 30, 2020, 01:12:07 AM
Thanks for reply..
I will try to build a trick ..