Events for edit fields in table

Events for edit fields in table

garymichgarymich Posts: 5Questions: 3Answers: 0

Hi everyone.

Perhaps I have missed something in the documentation but I cannot find any type of event that fires when a field in a table has been changed. In my render function for the editable fields in my table I have added onchange='myhandler' and when I make a change the event tries to fire but I always get an error stating that myhandler is undefined even though it has been defined.

Anyone had success trying something like this before?

Thanks,

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin
    Answer ✓

    It doesn't sound like you want a DataTables change event, but rather a DOM element change event. From your description you are using the DOM0 onchange which should work (it isn't really a DataTables issue as such), but we would need a link to a test case showing the issue to be able to offer any help debugging it.

    Allan

  • garymichgarymich Posts: 5Questions: 3Answers: 0

    Hi Allan,

    You are correct and I initially wasn't able to accomplish that. However I wrote a function to bind the event handlers to the3 applicable controls which I call from the event handler for the data table draw event and it now works great.

    Thanks for you7r prompt response.

    Gary

This discussion has been closed.