EasyUI Forum
March 29, 2024, 06:13:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Export all data of a datagrid in server side page mode  (Read 4046 times)
acreonte82
Jr. Member
**
Posts: 85



View Profile
« 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?
« Last Edit: March 29, 2020, 12:43:20 AM by acreonte82 » Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 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.
Logged
acreonte82
Jr. Member
**
Posts: 85



View Profile
« Reply #2 on: March 30, 2020, 01:12:07 AM »

Thanks for reply..
I will try to build a trick ..
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!