Current values not populated when editing row

Current values not populated when editing row

massivelegend00massivelegend00 Posts: 1Questions: 1Answers: 0

Hello guys,
I am very new to using datatables and I've run into a snag. I was able to wire up my create, edit and remove buttons correctly; however when I click on the edit button, it doesn't populate the current values for that entry. So my edit and create popups look identical. I using data from the DOM as the data source. Here is my current Javascript which creates the Datatables and Editor instances: http://dpaste.com/1ES7QAJ

Regards,
Zach

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Hi @massivelegend00 ,

    If you look at this example here, it's working as expected. I suspect your problem is that you haven't got a unique ID for each row (see the html tab in my example), so Editor doesn't know which row is being edited.

    Cheers,

    Colin

This discussion has been closed.