This question is locked. New answers and comments are not allowed.
Hi,
I am already using Custom Binding for some custom filtering combined with paging on the MVC Grid. I would like to add an Export to Excel button to the toolbar that will post the current filter/sorting/etc. to the action/route of my choosing so that I can return the current filtered data in an Excel file. How can I do this?
Specifically: How can I set up a toolbar button to post the current GridCommand data to the action/route of my choosing? I know how to do the Excel export part, but I need to know how to post the current filter and sorting data using a toolbar button. Note also that I have too long of a filter to use a Get request, so I must use a Post.
I am already using Custom Binding for some custom filtering combined with paging on the MVC Grid. I would like to add an Export to Excel button to the toolbar that will post the current filter/sorting/etc. to the action/route of my choosing so that I can return the current filtered data in an Excel file. How can I do this?
Specifically: How can I set up a toolbar button to post the current GridCommand data to the action/route of my choosing? I know how to do the Excel export part, but I need to know how to post the current filter and sorting data using a toolbar button. Note also that I have too long of a filter to use a Get request, so I must use a Post.