Editor reload or refresh the current row on open

Editor reload or refresh the current row on open

nproctornproctor Posts: 5Questions: 2Answers: 1

I have been reviewing the API and the forums and I could not find if this option is available. In cases where multiple people are using the data table and editor, in order to keep the data from going stale over the day, is there a way to have the editor reload/refresh the data for the row being edited when the editor lightbox windows opens?

Answers

  • allanallan Posts: 62,225Questions: 1Answers: 10,208 Site admin

    There currently isn't an option for that. It is something that is on my roadmap for Editor, but it likely won't be in until 1.6, possibly 1.7 (haven't fully decided the feature set for these versions yet!).

    Until then, what you would need to do is make an Ajax request to the server on activating a custom edit button to get the latest data for that row. Then update the row (row().data()) and finally start the edit (edit()).

    Regards,
    Allan

This discussion has been closed.