Column sizing

Column sizing

dwacekdwacek Posts: 3Questions: 3Answers: 0
edited February 2015 in Free community support

Can someone help I cant figure out why my datatable column sizes are not working correctly. Im wanting datatables to size columns based on data in my columns and what appears to happen is datatables is setting columns to a fixed length. Fields with a ID number or a data are as big as columns with large text. Im assigning column data with an ajax call and leaving most settings as default.

Any help would be much appreciated

  $('#tbQMReports').dataTable({
                "aaData": data.d,
                "bProcessing": true,
                "bDestroy": true,
                "bDeferRender": false,
                "aoColumns": [
                { "mData": "qmrID" },
                { "mData": "qmrSubDate" },
                { "mData": "qmrBranch" },
                { "mData": "qmrDept" },
                { "mData": "qmrDate" },
                { "mData": "qmrOwner" },
                { "mData": "qmPhysicianChamp"},
                ],

        });

Answers

This discussion has been closed.