i have an asp.net-mvc web page and i am using jqgrid on the front end. i want to have an export to excel button that will export the current set of data (based on the current filter).
i already use the toolbar filter so i see that the filter settings are stored in post data but i can't figure out how to create a method that will pass along all of the filter settings / rules to the server from jqgrid.
i see a bunch of jqgrid "export to excel" example after googling but similar to this example, none of them seem to be passing the filter information to the serverside.
HtmlTextWriter
to export data to HTML is quick & dirty solution. If you use numbers and not not only strings in the output, if you use currency, dates or custom formatters the HTML which you will use in Excel will be very rough. The user will have to make many type conversion to be able to sort the data for example. The list of disadvantages is very long. Really good data exporting to Excel you can make with respect of Open XML SDK 2.0 for Microsoft Office. The program will be longer, but the user will receive real XLSX file with correct data types. – Tunable