.draw() removes jquery .change()

.draw() removes jquery .change()

minifiredragonminifiredragon Posts: 82Questions: 16Answers: 2

When I fire the .draw() it removes all the bindings I initialized when the table was loaded. I tried .draw(false) and that did not stop it from removing my binds.

Is there a function I can call to reinitialize my jquery bindings?

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    draw() will not remove bindings. It might remove nodes and create new ones if you are using server-side processing, or it might display new nodes if you have defer render enabled or you've applied static event listeners.

    Have a look at this FAQ. If that doesn't please, please link to a test page showing the issue.

    Allan

  • minifiredragonminifiredragon Posts: 82Questions: 16Answers: 2
    edited April 2016

    I PM'd you the link to the site with the problems, I had already looked over that page a few times before I posted. The data is not server side. The information is built on page load.

  • minifiredragonminifiredragon Posts: 82Questions: 16Answers: 2

    On the website, change the weight and you will see what I mean. All the bindings are gone for that row. The weight (when changed is suppose to update the drop down) and the print button stops working

This discussion has been closed.