which callback should i use to change columnDefs target on demand?

which callback should i use to change columnDefs target on demand?

pmengopmengo Posts: 74Questions: 37Answers: 2

example: when setup datatables , user can choose to put buttons on last column or first column.
I use preDrawCallback , but seems datatable is allready rendered and besides targets values are changed , this doesnt reflect on table.
shoul i call redraw or something?

Answers

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    You could redraw, or you could add a listener for the event prior to initialising the DataTable.

    Allan

  • pmengopmengo Posts: 74Questions: 37Answers: 2

    thanks. Is there a standard way to inline edit row instead of cell?

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    Currently no. That is a feature I hope to add in a future version of Editor.

    Allan

This discussion has been closed.