How can I send custom attributes server side?

How can I send custom attributes server side?

dusuradusura Posts: 2Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
Hi,

I know I can set my own custom attribute for a datatable as outlined in http://datatables.net/forums/discussion/10434/adding-custom-attributes-to-datatable/p1 but how can I get datatables to send it server-side?

Any assistance would be much appreciated.

Replies

  • dusuradusura Posts: 2Questions: 0Answers: 0
    Found what I was looking for fnServerParams

    e.g.
    [code]
    'fnServerParams': function ( aoData ) {
    aoData.push( { "name": "bSoftDeletes", "value": $('#softDeletes').attr('checked') ? true : false } );
    }
    [/code]

    Thanks.
  • allanallan Posts: 63,394Questions: 1Answers: 10,451 Site admin
    That's it :-) Nice one.

    Allan
This discussion has been closed.