Add radiobutton as search with serverside:true
Add radiobutton as search with serverside:true
Stgr
Posts: 9Questions: 4Answers: 0
Hi I'm trying to figure out how to add radio button as extra filter for the search field but have only managed to get it to work with serverside:false.
See here: http://jsfiddle.net/9dqobatd/1/
Can anyone help trying to figure out how to add the value from the selected radio button to the search filter?
I'm running latest version 1.10
best regards Steffen
This discussion has been closed.
Replies
Does your server side script support column searches?
Kevin
Yes it does..
The radiobutton's are in a table just before the user_data table.
Would it be possible to get the value from the radio buttons from the serverside?
index.php
fetch.php
Hi Steffen,
It doesn't look like you're passing the radio button setting through to your server-side script - the Ajax settings aren't being modified.
This example here shows custom values being passed to the server. So for you, you'd set the radio button setting in the Ajax
data
block, allowing the server script to perform that filtering before the data is sent back.Hope that helps,
Cheers,
Colin
Thx Colin...
No you are right, I wasn't, but also I where not aware what to search for and how to do it, but your link sent me in the right direction, so thank you..
Index.php
fetch.php