How to export data from datagrid?

Exporting a JS array isn't supported. You can check my response to your other thread.