Data Tables will not resize on Splitter Pane

Data Tables will not resize on Splitter Pane

Danny234Danny234 Posts: 8Questions: 2Answers: 0

Hi,

I am using dataTables to adjust some old websites and it works fine untll now. I do have a site with a Splitter and created on both sides dataTables.
When i respilt the side, dataTables doesn't adjust their size. I tried diffrent things including calling

 tabllef.columns.adjust().draw();

with:

tabllef = $('#table-left').DataTable({

        data: dataSource,
        "columns":dataColumns,
         "stateSave": true,

        }); 

whenever the split bar is moved. but the dataTables do not adjust to the new size of the wrapper (pls. see picture).

I think the solution is easy, but the only way of adjusting the tables to the new pane sizes is by destroying and rebuilding them. Is there a better solution?

Any help is really welcome!

Answers

  • Danny234Danny234 Posts: 8Questions: 2Answers: 0

    Ah I found it. It is setting the HTML to

    style="width:100%"
    
This discussion has been closed.