Server side data filter

Server side data filter

kalisjoshuakalisjoshua Posts: 2Questions: 0Answers: 0
edited January 2012 in General
To start off with I am using v1.9 and a server side data source for the solution I am working on; initialization settings below:

{"bServerSide": true
,"bProcessing": true
,"sAjaxSource": "Maintenance/AjaxHandler"
...}

I would like to send specific data back with this request to pre filter the data from the server; so what I thought about doing at first is:

{"bServerSide": true
,"bProcessing": true
,"sAjaxSource": "Maintenance/AjaxHandler" + params
...}

Where "params" would be a string of URL parameters of the data I want to filter with on the server. There is a lot of data that we don't need to send back to the page. I believe and hope that there is an initialization parameter that will allow this I just can't seem to find what it is.

Any help would be greatly appreciated.

Thank you :)

Replies

  • kalisjoshuakalisjoshua Posts: 2Questions: 0Answers: 0
    So I found what I was looking for.

    http://datatables.net/release-datatables/examples/server_side/custom_vars.html

    Sorry for the worthless post all.
  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    Not worthless - all information is useful!

    It is actually possible to pass "GET" parameters as you describe above, but really the best way of doing it is with fnServerParams as you have discovered.

    Allan
This discussion has been closed.