As far as i know you cant with default Mendix. I think it might be possible with the datatables widget:
https://appstore.home.mendix.com/link/app/2702/ it states this in the documentation about exporting:
Otherwise you should use the excel exporter.