dynamically add space to table

dynamically add space to table

lastwishlastwish Posts: 5Questions: 0Answers: 0
edited July 2013 in DataTables 1.9
hey Allan,
I wonder if it is possible to make the table wider and wider as long as it needs.
plus, i need to column's titles to align from the left.
for example, im adding columns dynamically and i dont want them to spread all over the table width (which i initialize with 1200px), i want to to stick for the left as much as possible without making the long title become couple of rows. for example :
this
is
title

here is my code to init the table :
"sScrollY": $("#main_div").height()+'px',
"sScrollX": "100%",
"sScrollXInner": "1200px",
"bScrollCollapse": true,
"bPaginate": false,
"bLengthChange": false,
"bFilter": false,
"bInfo": false,
"bSort": false,
"bAutoWidth": false

its all written inside document.ready.
just reminding, columns are add dynamically

Replies

  • lastwishlastwish Posts: 5Questions: 0Answers: 0
    edited July 2013
    I set "sScrollXInner" to auto, it works beautifully with adding column and stuff. problem is, i dont want to table to shrink due to insufficient width but to keep expanding horizontally and than the horizontal scrolling will come into action.
    any way to do that?
This discussion has been closed.