Add radio button as filter/search with server side processing
Add radio button as filter/search with server side processing
Hi I’ve managed to add radio buttons to the search functionality on one of the example tables on this side with success, but cannot make it work on my homepage where serverside is set to true.
I have a hidden column with text like all/allactive/allinactive and my goal is to be able to filter with both radio buttons and the search field. So the radio button allactive is selected, then only active rows are showed, and so on.
I think it’s because of the server side, and I’m almost all out of ideas, how do I add this skates search option??
I’m using latest version 1.10
Answers
Are you performing a column search based on the radio button selection?
Assuming you are then that search should be sent in the request to the server. Is your server code setup to handle this search?
Maybe you can provide more details / code showing what you are doing.
Kevin
Hi Kevin,
Yes the radiobutton's value will be the search criteria and it looks at column 12 (a hidden column) the server side is only set up to handle the builtin search field, but im not familier enough with php/javascript to make it add that as a parameter.
The example I tried worked just fine with both search bar and the radiobutton at the same time, so im pretty sure it is because it is missing the radiobutton as search criteria.
the below code has been truncated a bit, but the important stuff is there, and anonymized..
The index.php
and this is what happens in the fetch