Automatically resize table if parent container size was changed.

Automatically resize table if parent container size was changed.

AliBahAliBah Posts: 11Questions: 0Answers: 0
edited September 2015 in Responsive

Hello!

Could you please help to understand how can I configure datatable to make it resizable. Currently, if user resizes browser window, (as ex. decrease width), datatable holds the same width, so page refresh required to adjust new width.

Mb there is some easy way to make datatable size responsible to parent container size changes?

Thanks for any help!

Replies

  • allanallan Posts: 63,572Questions: 1Answers: 10,482 Site admin

    Currently you need to call the methods to update the sizing as there is no resize event for DOM elements. Having said that, if you are interested in a future option for this have a read through this blog post - the technique shown there is something I'm likely to include in a future version of DataTables core.

    Allan

  • AliBahAliBah Posts: 11Questions: 0Answers: 0

    Thanks. Resolved.

This discussion has been closed.