Variable number of columns in datatable

Variable number of columns in datatable

ShrirangShrirang Posts: 1Questions: 0Answers: 0
edited January 2014 in General
My data to be displayed on datatable is transposed format. Rows are columns and columns are rows. So I need to show variable number of columns and fixed number of row. This is a challenge though. I am getting my data from ajax and then popuplating the data-bind attribute with the relevant columns and with the data too. I am not completely successful in this but I am trying.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > This is a challenge though

    It is! DataTables doesn't support the ability to dynamically add and remove columns at this time. You Would need to destroy and then create create the table each time you want to modify the column count.

    Allan
This discussion has been closed.