Passing jQuery DataTable to MVC Controller (AJAX / some other way)
Passing jQuery DataTable to MVC Controller (AJAX / some other way)
Hi Allan,
We are using JQuery DataTable with ASP.NET MVC
I have a scenario where i want to pass the filtered datatable data (the whole table content) to mvc controller ActionResult method ( may be using a AJAX call / some other way?) .
Have seen some posts and didnt help much. Could you please assist me on this.
The requiment is to use the filtered datatable data for some other server side processing.
There is no server side integration and the filtering is done in client side itself
Thanks in advance.Please let me know if this is not clear.
-Chris
This question has an accepted answers - jump to answer
Answers
Is my question not clear? :( Can someone assist me?
If you are using asp.net, then you should already be using an ajax page. If you switch the page to serverSide, then your filtered values are passed in the URL. The data is right there, you would merely send the data to a whatever (object, file, etc.). That is, instead of returning json data for dataTables, make the ajax file return the data in the format you want it to be.