schmunk42 / yii2-extension-requests

Ideas "marketplace" for Yii 2 extensions
18 stars 0 forks source link

Grid View with ability to export its content to csv #5

Closed yudilee closed 10 years ago

yudilee commented 10 years ago

I need GridView widget with ability ti export it's content into csv. Grid view in yii 2 is really awesome especially it's ability to search and view it result in grid. i really want grid view to have ability to export it to csv directly to browser. Thanks in Advance

cebe commented 10 years ago

This is more like another wrapper around dataprovider than related to gridview.

yudilee commented 10 years ago

Do you have any ideas how to do that, thanks for helping

samdark commented 10 years ago

It already exists: http://demos.krajee.com/grid-demo

yudilee commented 10 years ago

I already use it. But i cant find how to generate csv from that widget. Sorry if i'm wrong.

samdark commented 10 years ago

Ah, right.

kartik-v commented 10 years ago

The \kartik\grid\GridView extension is now updated to include the export feature for HTML and CSV formats (and EXCEL is in process) via a newly developed JQuery plugin. It allows you to export the grid data displayed on screen. You can refer the demo and documentation for the new features. The export plugin has some intelligence to detect the HTML5 download attribute for the supported modern browsers. Check the Export Data Button in the demo. The EXCEL export is being worked upon.

schmunk42 commented 10 years ago

Very nice. Please let me know when we can close the ticket.

Von meinem iPhone gesendet

Am 26.03.2014 um 21:42 schrieb Kartik Visweswaran notifications@github.com:

The \kartik\grid\GridView extension is now updated to include the export feature for HTML and CSV formats (and EXCEL is in process) via a newly developed JQuery plugin. You can refer the demo(http://demos.krajee.com/grid-demo) and documentation(http://demos.krajee.com/grid#grid-export) for the new features. The export plugin has some intelligence to detect the HTML5 download attribute for the supported modern browsers. Check the Export Data Button in the demo. The EXCEL export is being worked upon.

— Reply to this email directly or view it on GitHub.

yudilee commented 10 years ago

Amazing. Thanks a lot.

kartik-v commented 10 years ago

FYI... the yii2-grid extension has been enhanced:

  1. to work with all browsers in a more secure and reliable manner
  2. to support export of the displayed grid and download as HTML, TEXT, CSV, and EXCEL formats
  3. configurable file names for export
  4. configurable worksheet name for excel
  5. configurable column and row delimiters for export as TEXT or CSV
  6. i18n/translation enabled
  7. and the extension is a module now which has potential to add on more features later.

and more other features... Refer the updated documentation and demo.

yudilee commented 10 years ago

Thanks for this feature. So amazing.