How to specify an empty column in columns array - Requested Unknown Parameter Warning

How to specify an empty column in columns array - Requested Unknown Parameter Warning

nsscottnsscott Posts: 24Questions: 10Answers: 0

Struggling to work out how to indicated a column is to be ignored/empty. Below screenshot shows the issue:

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    Hi @nsscott ,

    The problem is you've got five th elements in the header, but you're only defining four columns. For those without data, define with columns.data being null, i.e.

    {data: null}
    

    Also consider defaultContent if you want to put something else in the column instead,

    Cheers,

    Colin

This discussion has been closed.