How do I implement the Filter with Server-Side Option?
How do I implement the Filter with Server-Side Option?
HillChris1234
Posts: 27Questions: 13Answers: 2
I have implemented a DataTable to work with the serverSide: true option in MVC. However, now the Filter box doesn't work. Why is that? Is there a way to capture the Filter value when the ActionResult runs? If so, I can apply the filter manually.
Something like:
var searchTerm = Request.Form.GetValues("filter").FirstOrDefault();
That's how I get the "start" and "length" values.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Figured it out... you can use:
var searchTerm = Request.Form.GetValues("search[value]").FirstOrDefault();