Colresize is not working.

Colresize is not working.

nitsbnitsb Posts: 2Questions: 2Answers: 0

Hi All,

I am using datatable with fixed column, column resize and reorder plugins. I have total 19 columns in table. I have first four columns fixed, non re-sizable and reorder-able. I am using vertical and horizontal scrollbar functionality of datatable. I have given min-width and max-width for columns through "aoColumnDefs". I am facing following two problems.
1) If I resize my column to max width then it is not resize to min width.
2) If I am trying to resize my column to below/than min-width then neighbor column is automatically increasing to max-width.
I am attaching my datatable initialization below.
var table = $('#example').DataTable({
bDeferRender: true,
bProcessing: true,
bFilter: false,
stateSave: false,
scrollX: true,
scrollCollapse: true,
scrollY: totalCalculatedheight + "px",
paging: false,
fixedColumns: { leftColumns: 4, heightMatch: 'auto' },
ordering: false,
"bAutoWidth": false,
dom: 'C<"clear">RZlfrtip',
colResize: { exclude: [0, 1, 2, 3] },
colReorder: { fixedColumnsLeft: 4 },
"aoColumnDefs": columns});
If anybody come across this issues or faced this type of issues please send me solutions. Or you can guide me.

Answers

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    Its a 3rd party plug-in that hasn't been updated in years I'm afraid. It isn't currently supported by anyone in the community.

    Allan

  • ShaheedShaheed Posts: 2Questions: 0Answers: 0
This discussion has been closed.