how can I give the column from 3 to 12 as centre alignment

how can I give the column from 3 to 12 as centre alignment

polachanpolachan Posts: 101Questions: 50Answers: 0
edited March 2019 in Free community support

Hi
Please can you help me how to give the column from 2 to 10 as centre alignment along with my row group
This is my script right now is working. But I want to give the column from 2 to 10 should be shown with center alignment and column 0 and 1 should not be shown. Because it is shown as group header. Please help
my link :
https://jsfiddle.net/6n5czfam/

$(document).ready(function () { $('#example').DataTable({ order: [[0, 'asc'], [1, 'asc']], rowGroup: { dataSrc: [0, 1], startRender: function (rows, group) { return $('') .append('' + group + ''); } }, scrollY: "500px", scrollX: true, paging: false, columnDefs: [{ targets: [0, 1], visible: false }] }); })

Answers

  • polachanpolachan Posts: 101Questions: 50Answers: 0

    I sorted the problem thanks for the help

This discussion has been closed.