How to get number of columns in a table

How to get number of columns in a table

Jithu123Jithu123 Posts: 8Questions: 6Answers: 0

Hi,recently I started using datatables.Can you please tell me how to get number of columns in a table?

This question has an accepted answers - jump to answer

Answers

  • personapersona Posts: 13Questions: 3Answers: 1
    Answer ✓

    Use myGrid.init().columns.length, where myGrid is your DataTables instance.

  • Jithu123Jithu123 Posts: 8Questions: 6Answers: 0

    Great!!!! Its working thank you :smile:

This discussion has been closed.