child rows / using "columnDefs" AND "columns"

child rows / using "columnDefs" AND "columns"

bonaventurebonaventure Posts: 15Questions: 7Answers: 0

How does the "columns" in javascript look (esp. for the dtr-column') when using a subset of columns from the data? Neither found documentation nor example for that.

columnDefs: [
{
className: 'dtr-control',
orderable: false,
searchable: false,
targets: 0
},
columns : [

<?php ?? , { other columns here} ] ?>

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    You would use either columns, or columnDefs, not both. If you need to define all columns (perhaps because you're using ajax objects), then put all the config into columns,

    Colin

This discussion has been closed.