I have a grid with an Export to CSV button. Since we have users who call automatic "screen-scraping" programs, is there a way to do a csv download via a URL parameter or similar? In other words, can I automatically start a csv download from the URL command?
1 Answer, 1 is accepted
0
Kostadin
Telerik team
answered on 23 Mar 2015, 10:23 AM
Hi Brad,
Thank you for contacting us.
Generally you can manually fire the export to CSV command from the server by simply calling ExportToCsv method. Nevertheless I would recommend to call the ExportToCsv method no earlier then PreRenderComplete event handler since there might be some issues.
Keep in mind that in this case the grid will not be render on the browser since the response is not send to the client.
I hope this information helps.
Regards,
Kostadin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.