jquery - How to adjust data table column width -


I'm trying to set the dataset column width. Datatelle ({"Order": [[0, "desc"]], "Column deafs": [{"width": "" "100px", "target": 0}, {"width": "400px" "Target": 1}, {"width": "200px", "target": 2}, {"width": "200px", "target": 3}, {"width": "200px", "target "": "}": "200px", "target": 5}, {"width": "200px", "target": 6}, {"width": "200px", "target": "}", " True, "sPaginationType": "Bs_two_button", "info": false, "fnDrawCallback": function (oSettings): "9", "scrollX": true, // "sScrollX": "100%", "paging" {$ ('Td'). RemoveClass ('sorting_1');}}};

How to explicitly insert column width in dataset? I tried css to set the width for the table. However, this was not a success?

Try to use 'target' in column def, not 'target', even here That if you are giving it only one column

If you want to do it through CSS, you can give each column your class (using the classname in column defaults), and use it to set the width.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -