Events for createdCell, createdRow & rowCallback Callbacks
Events for createdCell, createdRow & rowCallback Callbacks
Jamaur
Posts: 87Questions: 10Answers: 0
Is there a particular reason why columns.createdCell
, createdRow
& rowCallback
do not have dedicated events like createdCell
, createdRow
or row
?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
those options are effectively the hooks to the events.
Yes, the reason is performance. The event mechanism currently used (jQuery) is wonderfully flexible, but performance isn't great when there are a large number of events needing to be triggered. Consider for example a table with 10'000 rows and 5 columns, that 50'000 cell created events and 10'000 row created events.
I plan to do something about this for the next major version of DataTables as I do want to have events for these actions - update and delete as well, but I'm not 100% certain what yet!
Allan