Hello, I have a problem:
I have a parent column that says what data can be selected from the child column. I saw in one of the forum questions that I could use beforeChange
(Dropdown depending on another dropdown)
However, the beforeChange
hook is not called when loadData
is used, as we can see in the Github issue (‘beforeChange’ hook is not called when loadData), where it says we can use afterLoadData
, but when trying to do that, the code breaks and doesn’t work anymore.
I made an example where the beforeChange
is already working, and I commented the afterLoadData
with the expected rule (I commented because it breaks).
Here is the demo:
https://jsfiddle.net/ga83u40s/2/
The expected result is:
When filling the table (loadData
) and the user wants to modify which child is selected, it must show the child options, for that selected parent in the same line