Grid View with ability to export its content to csv
yudilee opened this issue · 10 comments
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
This is more like another wrapper around dataprovider than related to gridview.
Do you have any ideas how to do that, thanks for helping
It already exists: http://demos.krajee.com/grid-demo
I already use it. But i cant find how to generate csv from that widget. Sorry if i'm wrong.
Ah, right.
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.
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.
Amazing. Thanks a lot.
FYI... the yii2-grid
extension has been enhanced:
- to work with all browsers in a more secure and reliable manner
- to support export of the displayed grid and download as HTML, TEXT, CSV, and EXCEL formats
- configurable file names for export
- configurable worksheet name for excel
- configurable column and row delimiters for export as TEXT or CSV
- i18n/translation enabled
- 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.
Thanks for this feature. So amazing.