Calling .draw with additional custom parameter
Calling .draw with additional custom parameter
Hi there,
we're using serverside processing on some large datasets. We have a situation where when a user clicks a button we need to know all the record ids of all the iTotalDisplayRecords (not just those currently visible).
My idea was to call .draw on the Datatable but send along an additional parameter when that button click happens.
My question: how to 'intercept' the call the Datatable makes after I call .draw?
I want to send an additional form variable along with columns[0][data] and all the others.
Doable?
Replies
Use the
preXhrevent to intercept the Ajax call and modify the data.Or if it is something you know you want to do every single time the request is made, use
ajax.dataas a function to modify the data.Allan
Nice one, I think
preXhris what I need. Will try and report back.