Hi everyone,
I'm trying to accomplish a file download via a netzke endpoint/ajax. E.g. I want to export the data of a grid panel into excel.
In my opinion, the 'classic/none-ajax' way would be to create a controller and do all the rendering/exporting there. So a simple button that changes window.location would do the trick.
On the other hand, that would duplicate a lot of code, since I already have a lot of things in my component, that I could use (e.g. get_data/get_records).
I think, doing it via an endpoint would be much nicer & cleaner. So, has anyone done such a thing or could share some ideas?
cheers,
Georg