Exporting Datagrid contents with QDataGridExporterButton
Using this plugin you can add a button to your QForm that will let your users export data
from a datagrid within your web application. The exported data can be in one of the following
formats:
- CSV: comma-separate plain text file
- XLS: Microsoft Office Excel file
The data that gets exported may be either:
- the full contents of the datagrid, irrespective of any pagination
- only the current page that the user is looking at within the datagrid
Using the
QDataGridExporterButton control is pretty easy - just create it like
you would create any other
QButton, but pass in a
QDataGrid control
as a parameter. Then, set the necessary parameters (ex. format of the output), and you're
good to go.