≡
×
Plus
Manual
Examples
Reference
Download
Blog
Community
Support
Colreorder - allow only on some columns / disable on some columns
Colreorder - allow only on some columns / disable on some columns
ragulka
Posts: 3
Questions: 0
Answers: 0
August 2011
edited August 2011
in
General
Hi, is it somehow possible to disable column reordering on some columns? Seems like such a basic feature, but I could not find any info on this.
Replies
fbas
Posts: 1,094
Questions: 4
Answers: 0
August 2011
iFixedColumns
[code]$(document).ready( function () {
var oTable = $('#example').dataTable( {
"sDom": 'Rlfrtip',
"oColReorder": {
"iFixedColumns": 1
}
} );
} );[/code]
http://www.datatables.net/extras/colreorder/options
ragulka
Posts: 3
Questions: 0
Answers: 0
August 2011
Hmm. How would I then "fix" the fisrt and last column, if I had 6 columns?
FlashJunior
Posts: 9
Questions: 0
Answers: 0
March 2012
edited March 2012
i have the same problem :-/
5 columns and the last column shoud be "fix".
the best for me would be an data tag like:
[code]
1
2
3
4
last
[/code]
This discussion has been closed.
Replies
[code]$(document).ready( function () {
var oTable = $('#example').dataTable( {
"sDom": 'Rlfrtip',
"oColReorder": {
"iFixedColumns": 1
}
} );
} );[/code]
http://www.datatables.net/extras/colreorder/options
5 columns and the last column shoud be "fix".
the best for me would be an data tag like:
[code]
1
2
3
4
last
[/code]