Updating Select list in Editor popup container
Updating Select list in Editor popup container
Hello,
I have 2 tables at one page.
In 1st table i able to work with data at column "titles", for example. Field type - default, text.
In second table i use exactly same column, but field type is "select".
The problem is:
When i change data in 1st table and go to second, the changes affects only on output table, in Editor popup it remains the same ( i.e there is no new records, or deleted are still exists ).
As i can understand, i need to somehow refresh data ( DataTable().ajax.reload() ? ) after record has been added, or after i switch to second table. (i use div tabs and able to bind some javascript at event ).
This question has accepted answers - jump to:
Answers
Hi,
Yes, Editor will trigger an update on a single table only. If you have two tables that are interdependent then you would need to trigger a refresh using
ajax.reload()
or similar. You could do that using thepostEdit
event.Allan
I already have done that week ago, by triggering refresh after event click at Tab.
In JS console i can see, that it loads new data successfully.
But there is no new data visual, idk why.
I'm afraid I don't know either. I would need a link to the page to be able to debug the code.
Allan
I'm so.. retarded.
The Editor field data is not updated default, when ajax.reload is performed.
The only way to change data in editor.fields is to do it manually, for example:
Thank you, Allan.
Once again, convinced that existing topics on forum have inside answers to 99% of the basic questions asked.