Hello there
I'm working with 2 DropDownLists, parent and child. It works fine so far with cascading . Then I realized the relation from parent to child is always 1:n. Is there a (easy) way to make it n:n? An example based on data source:
Parent:
dataSource: [
{ actionText: "Drive", actionId: 1 },
{ actionText: "Open", actionId: 2 }
]
Child:
dataSource: [
{ objectText: "Car", objectId: 1, actionId: 1 },
{ objectText: "Window", objectId: 2, actionId: 2 }
]
This gives the following (cascading) relations:
Drive -> Car
Open -> Window
But a car can be opened (its doors) as well, so the following cascading relations are wanted:
Drive -> Car
Open -> Car
-> Window
That means I need to define two relations from child "Car" to parent (to "Drive" AND "Open"). So when "Open" is chosen from parent DropdownList the child DropdownList should have listed "Window" AND "Car" do be chosen.
Is there a (easy) way to define this? As a workaround I see a reconfiguration of the child dataSource after selecting an item from the parent DropdownList.
Regards