Make pagination and search shareable.

Make pagination and search shareable.

khronnuzkhronnuz Posts: 1Questions: 0Answers: 0
edited October 2012 in General
Hello,

I am using Datatables with Bootstrap. Simple Dom source. Is it possible to make Datatables update current url based on filter/page? E.e. http://myapp/#q=some+query&page=2?

Thanks.

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Currently no - there isn't a built in way to do this, although you can easily do it using the initialisation options. You just need to parse the query string and pass the required parameters to DataTables ( iDisplayStart for example).

    This has come up a number of times recently, so I've made a note to write a tutorial about it in future, although if you do some up with your own solution, I'm sure others would be very grateful if you could share it!

    Allan
This discussion has been closed.