4 Answers, 1 is accepted
The desired result can be achieved on the excelExport event by programmatically setting a new value of the exported workbook name:
I hope this is helpful.
I just don't know what I'm supposed to do with this. After my grid Reads it's data (AutoBind = false), I call this little segment:
And when my grid loads, I click the excel button, it's not coming up with this name at all, it's just coming up as plain Export.xlsx. So how do I use this with MVC?
The approach for adding an excelExport event handler to an already initialized grid is correct. The issue comes from the casing of the filename property.
Change it to camel case as below:
Alternatively, you may use the Razor syntax to attach the vent handler in the configuration of the grid.