@korchev it's not a simple dropdown component!
It's a dataGrid (editableGrid), that has 10columns, and when in Edit mode, 2 columns are dropdowns.
So the Invoke DataSource method that populates the dropdown, is the main invoke of the Grid, and it populates everything.
But each row will have its dropdown values, so I cannot use that Invoke on the Grid Load event.
I hope you understand what I mean.
And now I also have another issue, I used the Change event of the first dropdown to do the Invoke filtered by ${event.value} and I save the result in a property: dropdownResult.
Now if I close the template of the first dropdown, and open the template of the second dropdown, and I try to use as Data, the property I set in the previous invoke, "dropdownResult" , it doesnt work, besides being empty the dropdown, I see right away that something is wrong when I start typing and it doesnt suggest the name "dropdownResult".
It's like the Template of the second dropdown doesn't have access to the property declared in the template of the first dropdown...
To make a final summary:
-I have an editable grid
-the grid has 10 columns
-2 columns when in EDIT mode are Dropdowns
-the second dropdown depends on the value of the first.
-I use "Edit Template" to assign those columns as dropdowns in Edit mode.
What I want to achieve is, when the Editable Grid is loaded, and all columns are filled, if I enter in Edit mode, and without touching the value of the first dropdown, I want to see in the second the correct values (filtered by the first dropdown) and if I change the value of the first dropdown, it will update the value of the second dropdown.
I hope it's clear
EDIT: The issue where I don't find the property in the second Template is Solved, I just closed everything and run radzen again, but the first issue stays, how can I load the correct data in the initial load based on the first dropdown value?