perform client-side searching when serverSide is set to true

perform client-side searching when serverSide is set to true

babablacksheepbabablacksheep Posts: 41Questions: 23Answers: 0
edited August 2014 in Free community support

Hi,
I see that if I set serverSide:true and if I use following code to search , it sends data to server.
I knwo this is desirable but in my case I have serverSide:true but I also want to be able to search inside table through another input .

So I have one input with server side search and one input to search whatever data is loaded at the moment.
Please help !!!

$('#example').DataTable().search("string").draw();

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,262Questions: 1Answers: 10,424 Site admin
    Answer ✓

    It is not possible to combine both server-side and client-side processing in DataTables. They are mutually exclusive. The reason for this is that the search would only be able to search the data that has already been loaded at the client-side. That might be what is wanted in some limited cases, but it isn't a scenario that DataTables currently supports.

    Allan

This discussion has been closed.