Colreorder - allow only on some columns / disable on some columns

Colreorder - allow only on some columns / disable on some columns

ragulkaragulka Posts: 3Questions: 0Answers: 0
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

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    iFixedColumns

    [code]$(document).ready( function () {
    var oTable = $('#example').dataTable( {
    "sDom": 'Rlfrtip',
    "oColReorder": {
    "iFixedColumns": 1
    }
    } );
    } );[/code]

    http://www.datatables.net/extras/colreorder/options
  • ragulkaragulka Posts: 3Questions: 0Answers: 0
    Hmm. How would I then "fix" the fisrt and last column, if I had 6 columns?
  • FlashJuniorFlashJunior Posts: 9Questions: 0Answers: 0
    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.