In data-table plugin, while I'm re-sizing the any of column with large size(width), I want to save the width of column and enable the horizontal scroll only when width is bigger, than some value(this value defined by me).
Whereas now it is relatively adjusting other column with and fixed with in 100%.
Can some one help with this?
// all task view table generation script
var allTaskTable;
allTaskTable = $('#AllTaskTable').dataTable({
"fnDrawCallback": function (AllTaskSettings) {
if (AllTaskSettings.aiDisplay.length == 0) {
return;
}
}, "sPaginationType": "full_numbers",
"sDom": 'Rlr<"tableContainer"t>ip',
"aaSorting": [[9, "asc"]],//Default sorting is on column 9, desc
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [0, 1] }//Do not sort on column 0 and 1, which are the radio button and context menu
],
"bRetrieve": true,
"bDestroy": true,
"bPaginate": true, // this line of code for header freeze
//"bFilter": true,
//"sScrollY": "580",
//"sScrollX": "100%",
//"sScrollXInner": "100%",
//"bScrollCollapse": true
"autoWidth": false
});