Hi Customer,
Greetings from Syncfusion support.
In the cascading dropdown list the second dropdown’s data is assigned from a query generated based on the first dropdown’s selected value. So when United States is selected the query is formed based on this which returns its related states. Please let us know if one of the following is what you require to achieve,
- If you want the country to be related to the state then it would allow the first dropdown value to be selected only once and the second dropdown data will remain related to the first dropdown value. Like for e.g. – Consider initially ‘Australia’ is selected from the first dropdown. In the first dropdown’s change event query will be generated based on this value which will then be assigned to the second dropdown and data will be bound. Now based on this query the second dropdown will display the states related to ‘Australia’. Now after this when you go back to the first dropdown since the selected states are related to ‘Australia’, you can disable/prevent selection to the first dropdown thus not allowing to change the value. Since the first dropdown is restricted from changing now, the second dropdown only allows selecting from the states related to ‘Australia’.
- Another option would be to clear the second dropdown value and then move it to focus each time the first dropdown value is modified. Now whenever the first dropdown value is updated the second dropdown also needs to be updated accordingly.
If your requirement does not come under the above please elaborate it to us. Based on your response we will update the further details.
Let us know if you have any concerns.
Regards,
Sujith R