There is a default function in the datagrid where you can export to Excel or CSV.
So instead of using a list view widget, use the data grid widget
Hi Mohit,
You can use Data grid for the button. There is a button export to excel you can use it for excel format.
Hope this helps!