About autowidth
About autowidth
Hello~
I am using DataTables.
I want fix colunms width.
But when I use search option, show (x) entries or sort function, It displays columns size automatically.
I am using chrome..
Please help me~
$('#example').dataTable(
{
"sScrollY": "430px",
"bAutoWidth" : false,
"bScrollCollapse": true,
"aaData" : aDataSet,
"aoColumnDefs" : [
{
"sTitle" : "ID",
"sWidth":"20px",
"aTargets" : [ 0 ]
},
{
"sTitle" : "TITLE",
"sWidth":"20px",
"aTargets" : [ 1 ]
},
...............................
});
I am using DataTables.
I want fix colunms width.
But when I use search option, show (x) entries or sort function, It displays columns size automatically.
I am using chrome..
Please help me~
$('#example').dataTable(
{
"sScrollY": "430px",
"bAutoWidth" : false,
"bScrollCollapse": true,
"aaData" : aDataSet,
"aoColumnDefs" : [
{
"sTitle" : "ID",
"sWidth":"20px",
"aTargets" : [ 0 ]
},
{
"sTitle" : "TITLE",
"sWidth":"20px",
"aTargets" : [ 1 ]
},
...............................
});
This discussion has been closed.