How to export data from datagrid?

Hi,

I am using version 2.19.3. How can I export data from datagrid ?

Here is my sample dataset -

[ { date: '2019-03-01',
t1: '100',
t2: '100',
t3: '100',
t4: '100',
t5: '100',
t6: '100',
t7: '100',
t8: '100',
t9: '100',
t10: '100',
t11: '100',
t12: '100',
t13: '100',
t14: '100',
t15: '100',
t16: '100',
t17: '100',
t18: '100',
t19: '100',
t20: '100',
t21: '100',
t22: '100',
t23: '100',
t24: '100',
t25: '100',
t26: '100',
t27: '100',
t28: '100',
t29: '100',
t30: '100',
t31: '100',
t32: '100',
t33: '100',
t34: '100',
t35: '100',
t36: '100',
t37: '100',
t38: '100',
t39: '100',
t40: '100',
t41: '100',
t42: '100',
t43: '100',
t44: '100',
t45: '100',
t46: '100',
t47: '100',
t48: '100' },
{ date: '2019-03-02',
t1: '100',
t2: '100',
t3: '100',
t4: '100',
t5: '100',
t6: '100',
t7: '100',
t8: '100',
t9: '100',
t10: '100',
t11: '100',
t12: '100',
t13: '100',
t14: '100',
t15: '100',
t16: '100',
t17: '100',
t18: '100',
t19: '100',
t20: '100',
t21: '100',
t22: '100',
t23: '100',
t24: '100',
t25: '100',
t26: '100',
t27: '100',
t28: '100',
t29: '100',
t30: '100',
t31: '100',
t32: '100',
t33: '100',
t34: '100',
t35: '100',
t36: '100',
t37: '100',
t38: '100',
t39: '100',
t40: '100',
t41: '100',
t42: '100',
t43: '100',
t44: '100',
t45: '100',
t46: '100',
t47: '100',
t48: '100' }]

I use it to set the property used by datagrid. I want to export this data from "DataGrid".

Do anyone know what the correct procedure is ?

I need the assistance to solve this issue.

Regards,

Paul Wang

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

Hi,

I understand that Razen only support "export" for database source. It is possible that I can call other external library ( file-saver npm module, xlsx npm module.) or not.

You probably can call an external library. Check the Execute Code action and the Using third party libraries blog post.