Open ryanlaw opened 9 months ago
editUI.on('field'... is deprecated since version 7 Can you please create a Code example of what you have and show us with screenshots if possib;le what do you need to do?
Hi ZornitsaPesheva, Thanks for your reply and here is the code snipe: https://code.balkan.app/821#JS At the detail window we see: and when we get into the editUI the dropdown of the country is not selected properly. We were hoping to use the editUI.on('field' to do the selected. If it has been deprecated, is there any other way we archive what we wanted?
Thanks
Furthermore, when saving the editUI, country codes were returned and saved. Is there anyway to return and save its actual text instead?
Here is a code demo on how to use a dropdown in the edit form: https://code.balkan.app/org-chart-js/dropdown-list-selection-in-edit-form#JS
Thanks ZornitsaPesheva, you are really helpful
Hi @ZornitsaPesheva , There is an error when creating a new node with your sample and open the editUI.
Do you know why is it?
Thanks
Could you please edit this example to isolate the issue? https://code.balkan.app/org-chart-js/dropdown-list-selection-in-edit-form#JS
Hi @ZornitsaPesheva ,
Thanks for you following up.
There is no need to modify the examples you provided: https://code.balkan.app/org-chart-js/dropdown-list-selection-in-edit-form#JS
Steps to reproduce the issue:
Thanks
I have fixed the issue by moving the focus on another element, addin focusBinding: "Title"
Hi, did you manage to solve this issue?
we are using professional version 8.13.34, and we wish to do something about the selectbox we put inside the editUI (e.g. make some value selected based on data stored DB). We found a code snipe (https://jsfiddle.net/5gwa7scp/1/) done by ZornitsaPesheva. However the same code section:
chart.editUI.on('field', function(sender,args) { console.log(sender); console.log(args); });
doesn't do anything with the js file shipped with the professional.
Can anyone please help?
Thanks and regards