Datatables with BBQ
Datatables with BBQ
Hi,
I saw on another post that you don't recommend handling with Ajax / BBQ for datatables if the functionality required is to, for example, press back and keep filtered data.
What I would like to do is keep the checkboxes ticked on a form within a datatable (that has pagination) that were ticked prior to moving off the page with ajax. I'm pretty sure I can save the variables for BBQ to reference later. I guess I shouldn't be concerned about pagination since I'm already comfortable with using fnGetNodes(). I have been impressed that I can keep the boxes ticked when I page naturally but I wonder how easy it is to store and return the selected checkbox array via BBQ.
I can't imagine it being a problem even with the filtered data example that the user mentioned in the forum post I read. Surely I can just feedback the search criteria saved to bbq and reinitialise the filter.
Maybe the post I read was old but I'm sure pressing back / ajax and datatables must be able to nicely work together somehow.
Apologies this is a post in advance of a problem which I realise is quite a frustrating approach but I'm about to implement BBQ which in itself feels like a mammoth task. I am hoping it plays nice with datatables. If it doesn't I might stick to triggering modal windows for properties information on datatable row items.
Thanks for reading.
Kind regards,
James
I saw on another post that you don't recommend handling with Ajax / BBQ for datatables if the functionality required is to, for example, press back and keep filtered data.
What I would like to do is keep the checkboxes ticked on a form within a datatable (that has pagination) that were ticked prior to moving off the page with ajax. I'm pretty sure I can save the variables for BBQ to reference later. I guess I shouldn't be concerned about pagination since I'm already comfortable with using fnGetNodes(). I have been impressed that I can keep the boxes ticked when I page naturally but I wonder how easy it is to store and return the selected checkbox array via BBQ.
I can't imagine it being a problem even with the filtered data example that the user mentioned in the forum post I read. Surely I can just feedback the search criteria saved to bbq and reinitialise the filter.
Maybe the post I read was old but I'm sure pressing back / ajax and datatables must be able to nicely work together somehow.
Apologies this is a post in advance of a problem which I realise is quite a frustrating approach but I'm about to implement BBQ which in itself feels like a mammoth task. I am hoping it plays nice with datatables. If it doesn't I might stick to triggering modal windows for properties information on datatable row items.
Thanks for reading.
Kind regards,
James
This discussion has been closed.
Replies
Allan
Its a jQuery plugin for handling the history / back forward buttons. I'm surprised you have not heard of it before. It is the most renowned history plugin.
Kind regards,
James
Does anyone have any experience of utilizing the back history functionality with datatables?
What do you want to get from the integration with BBQ? Back button support when paging, sorting and filtering? You could listen for the `draw` event from DataTables and add state changes to the history cache.
Allan