Table rendering event

Table rendering event

emptyfruitemptyfruit Posts: 2Questions: 1Answers: 0
edited August 2017 in Free community support

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

Answers

  • rf1234rf1234 Posts: 2,986Questions: 87Answers: 421
    Answer ✓

    but isn't that exactly the draw event?!
    https://datatables.net/reference/event/

  • emptyfruitemptyfruit Posts: 2Questions: 1Answers: 0

    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 :)

  • rf1234rf1234 Posts: 2,986Questions: 87Answers: 421
    edited August 2017

    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 ...

This discussion has been closed.