select combo box as filter

select combo box as filter

valdezrvaldezr Posts: 49Questions: 0Answers: 0
edited May 2009 in General
Hi all enthusiasts!

I hope somebody can help me with this topic.

I am using server side processing; I need to put a select combo box so that when i get the request in the server I can get the select combo box value.
This value must be retrieved every time the server is requested, wathever being key pressed in the search filter box, or records length change or any other action that normally do a request on the server.

I need the value of my combo box because it will be in my query on the WHERE condition. I know that I could use fnFilter if the value would be a column value to filter in the table but this is not the case.

Thanks in advance.

Replies

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    This sounds like the perfect case for the custom variables example to be brought out: http://datatables.net/1.5-beta/examples/server_side/custom_vars.html

    This shows how you can add whatever variables you want (or even manipulate the ones sent by DataTables) in the Ajax get request to the server.

    Allan
This discussion has been closed.