Table rendering event
Table rendering event
emptyfruit
Posts: 2Questions: 1Answers: 0
Is there an event that gets triggered every time after all column have beed rendered (elements from 'render' function of each column are present in DOM)? initComplete fires only once, so if i need to do extra work on elements (i.e. add listeners), that i render in columns' renderers, it happens only once. And after redraw (sorting for example), my elements are also get rerendered and my listeners are gone..
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
but isn't that exactly the draw event?!
https://datatables.net/reference/event/
Hm.. seems right. But to be honest, i tried it before starting the thread it couldn't find my elements in DOM. Now i tried again and it works. But my code really changed since, so i guess i had another flaw. Thank you
You are welcome! Good to hear you got it working. With the multitude of features in Data Tables it is not unusual to get lost every once in a while. Happens to me all the time ...