Need to add two input boxes on toolbar

Need to add two input boxes on toolbar

CenterFoundCenterFound Posts: 30Questions: 10Answers: 0

I have a large table that I need to display filter results. The two inputs would be a a range, start and end, to be passed to ajax. This filtered result set would be loaded into DataTables via server side processing. The values from the start and end would be passed as parameters to the ajax call. I'm uncertain how to do this, any guidance appreciated.

Thank you, Allan

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,834Questions: 1Answers: 10,518 Site admin
    Answer ✓

    The ajax.data option can be used to pass data to the server, which it could then perform whatever filtering it needs to on. Use that option as a function to let it get the values dynamically from the document, then just call draw() when you want to redraw the table.

    Regards,
    Allan

  • CenterFoundCenterFound Posts: 30Questions: 10Answers: 0

    Thanks Allan - This appears to do what I need.

This discussion has been closed.