bug with DataTables v1.7.1 Columns's width
bug with DataTables v1.7.1 Columns's width
thesmallcar
Posts: 3Questions: 0Answers: 0
Good eveing :)
When I make 3 Columns, and I hide Column 2.
Then Column 2's width is in effect, it have effect Column 3!
At last thanks for your work! It's great!
When I make 3 Columns, and I hide Column 2.
Then Column 2's width is in effect, it have effect Column 3!
At last thanks for your work! It's great!
This discussion has been closed.
Replies
Allan
/* id */ { "bVisible": false, "bSearchable": false,"bSortable": false,"aTargets": [ 0 ]},
..........
id<!-- be hidden -->
title
name
I try like this, then the column id 's width is using for column title.
My English is not good, hope you can understand:)
at last I cancel the line 2722 and 2757(ver 1.7.1 code is //nTh.style.width = oSettings.aoColumns[i].sWidth; The tow lines are same).
now I can define the width like this:
id
title
name
[code]
$(document).ready(function() {
$('#example').dataTable({
"aoColumnDefs": [
{ "bVisible": false, "bSearchable": false,"bSortable": false,"aTargets": [ 0 ]}
]
});
} );
[/code]
[code]
1
2
3
1
2
3
[/code]
Perhaps you could link us to an example which is showing this problem please?
Thanks,
Allan