How to re-initialize or refresh Editor?

How to re-initialize or refresh Editor?

dmcglynndmcglynn Posts: 15Questions: 5Answers: 0
edited December 2015 in Editor

I have successfully followed this example on "One-to-Many joins" in the Editor.

https://editor.datatables.net/examples/advanced/joinArray.html

I have developed a page where after the Editor is initialized, the user is able to modify the table from which my "many" is pulled.

Is there a method in Editor to re-initialize or refresh so that after a user changes the contents of the "many" table, my editor-generated checkbox-list will then show the new result from the "many" table? A page-refresh takes care of it, but I was just curious if there was another way?

Thanks!
David

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    Hi David,

    Currently the ajax.reload() method would be how that can be done. It will refresh to full table (without requiring a page reload).

    A more complete solution (not requiring a full table data reload) would require some potentially complex logic to refresh only the result cells, although it could be done if that is a requirement.

    Allan

  • dmcglynndmcglynn Posts: 15Questions: 5Answers: 0

    That is absolutely what I was looking for. Thanks for the quick help, Allan. I keep forgetting that the editor is an extension of the dataTable!

    Great work on this amazing project!

This discussion has been closed.