Multi column search at once using fnMultiFilter

Multi column search at once using fnMultiFilter

AdityakallurAdityakallur Posts: 3Questions: 1Answers: 0

i am trying to use fnMultiFilter

tableContainer = userTable.closest(".table-container");
tableContainer.on("click", "#dashboard_search", function (e) {
var data = { "Id": $('#column-1').val(), "FirstName": $('#column-2').val(), "LastName": $('#column-3').val(), "UserName": $('#column-4').val(), "Deleted": $('#column-5').val() };
$('#userlist').dataTable().fnMultiFilter(data);

This is my code , i am able to hit the controller but i am getting the parameters in the controller.
Can any one help me out if i am missing some thing.?

Thanks,
Aditya kallur

Answers

  • AdityakallurAdityakallur Posts: 3Questions: 1Answers: 0

    sorry , to correct the above
    i am not getting the search values in the controller

  • AdityakallurAdityakallur Posts: 3Questions: 1Answers: 0

    The above code is working for me after a small change
    changed the key in the key/value pair like
    Id to 1
    FirstName to 2 and so on

This discussion has been closed.