Datatables with BBQ

Datatables with BBQ

jpittjpitt Posts: 3Questions: 0Answers: 0
edited July 2013 in General
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

Replies

  • allanallan Posts: 63,500Questions: 1Answers: 10,471 Site admin
    This is a daft question I'm sure, but what is BBQ? Other than something that I can put burgers and sausages on (I was imagining a realtime updating table of what was on the bbq and when the items will be ready when I saw your post title ;-) ).

    Allan
  • jpittjpitt Posts: 3Questions: 0Answers: 0
    http://benalman.com/projects/jquery-bbq-plugin/

    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
  • jpittjpitt Posts: 3Questions: 0Answers: 0
    The BBQ plugin was referenced in previous forum posts. It definitely doesn't have anything to do with cataloguing our bi-annual outdoor feasting.

    Does anyone have any experience of utilizing the back history functionality with datatables?
  • allanallan Posts: 63,500Questions: 1Answers: 10,471 Site admin
    Oh I see - I probably have seen it before, but haven't used it myself, so it slipped my mind. Thanks for the link.

    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
This discussion has been closed.