Responsive datatable inside bootstrap modal dialog

Responsive datatable inside bootstrap modal dialog

duxdux Posts: 1Questions: 1Answers: 0
edited September 2016 in Free community support

Hi, I have a datatable inside a bootstrap modal dialog. The table itself has the class "responsive" and I am using the appropriate js-files.

Normaly when I resize my browser window all datatables will appear responsive and hide columns as the window gets smaller. But, when a datatable is inside a modal dialog it wont update itself when the modal dialog gets smaller.

Any thoughts about this? Have I missed something?

Sorry for not reading the rules. Heres the fiddle: http://live.datatables.net/moxajuri/1/edit

Answers

  • teruki1995teruki1995 Posts: 1Questions: 0Answers: 0

    prueba con el ejemplo de aqui https://datatables.net/extensions/responsive/examples/display-types/bootstrap-modal.html , pero a

    <

    table id="example" class="table table-striped table-bordered nowrap" cellspacing="0" width="100%"> el class lo dejas class="table table-striped table-bordered" eso creo que me funciono como arte de magia

  • HC777HC777 Posts: 2Questions: 0Answers: 0

    Answer belated, but it would be helps to somebody to make a table responsive.
    Just add this: <div class="table-responsive">
    Before your tag: <table id="example" class="table table-striped table-hover responsive">
    Then close the div with </div> tag after the table container div.

This discussion has been closed.