Fnfilter serverside

Fnfilter serverside

chrischenchrischen Posts: 6Questions: 0Answers: 0
edited January 2010 in General
I noticed fnfilter does not send the sSearch in the headers for the post request. How can I get it sent to properly filter the serverside results?

Thanks

Replies

  • chrischenchrischen Posts: 6Questions: 0Answers: 0
    Also, I set bFilter: false since I'm using a custom search box.
  • chrischenchrischen Posts: 6Questions: 0Answers: 0
    Ok I found a solution.

    I set sDom to just 't' and set bFilter to false. Is this the intended solution though, because it feels unintuitive.

    Thanks
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Hi chrischen,

    Yes this is intended - if you set bFilter to false, then filtering is switched off - not unreasonable I hope :-). However if you want filtering switched on, but for DataTables to just not add it's input element, then you simply remove the 'f' option from sDom.

    Regards,
    Allan
  • ShaneFShaneF Posts: 1Questions: 0Answers: 0
    Sorry if I'm being obtuse, but I was running into the same issue as chrischen. This will solve my problem, but how do I remove the 'f' option from sDom?

    I want to filter on individual columns, but I don't want the global search box rendered. Enabling bFilter allowed me to get the parameters sent to the server.

    Thanks!
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    http://datatables.net/ref#sDom

    Allan
This discussion has been closed.