I use Fixed Data Grid in my project.
https://facebook.github.io/fixed-data-table/example-sort.html
I want to take csv and pdf reports. Is it possible to export grid data to pdf or csv directly? Or what can I do to take csv and pdf reports with data provider(JSON Array) of datagrid?
Since you have access to the raw JSON data that gets displayed within the table, you should be able to use a library like Papa Parse to "unparse" the data into a csv format, which can then be downloaded.
As for converting to pdf, I would look into the jsPDF library. See this answer for details about how to do that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With