serverside data sorting when columns are set bVisible : false

serverside data sorting when columns are set bVisible : false

derocchaderoccha Posts: 9Questions: 1Answers: 0
edited October 2013 in General
I retriver serverside datas and on client side I switch off sorting on columns. However when I would like to sort datas on the second column sorted is going to be column 3. How to set sorted columns?

[code] var oTable3 = $('#subjects').dataTable({
"sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "index.php?option=com_unis&task=subjects.getItems&uni_id=<?php echo $this->uni ?>&<?php echo JSession::getFormToken() . '=1' ?>",
"sDom": "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'l><'span6'p>>",
"bAutoWidth": false, // Disable the auto width calculation
"aoColumns": [
{"sWidth": "5%", "bSortable": false},
{"sWidth": "5%",
{"sWidth": "50%"},
{"sWidth": "20%", "sClass": "center"},
{"sWidth": "10%", "sClass": "center"},
{"sWidth": "10%", "sClass": "center", "bSortable": false}]
});



[/code]
This discussion has been closed.