Multiple Cascading dropdown lists on the same form

1 Answer 24 Views
DropDownList Filter
Krista
Top achievements
Rank 1
Krista asked on 04 Apr 2024, 11:11 AM

Hi I'm attempting to repeat a vehicle (year/make/model) set of cascading dropdown lists in a component that would result in up to 3 vehicle selectors on the same form. Running into issues as the ddls have the same ids. I've been playing around with appending counters to the name etc but running into the issue where the last set of ddls gets the data. Wondering

1. If there is a working example of this scenario

2. If it is possible to pass a value to the filter function

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 09 Apr 2024, 07:33 AM

Hello Krista,

Thank you for the details provided.

The Telerik UI Components should have unique names in order to work as expected. This is a requirement for the DOM tree.

Here is a demo with 3 cascading DropDownLists that can be used for MVC:

For the second question - yes, you are totally correct, the value of a DropDownList can be used for filtering another DropDownList.

As the demo above represents the built-in scenario, I would recommend using it. The implementation can be found in the "View Source" tab of the demo.

Kind Regards,
Anton Mironov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.

Tags
DropDownList Filter
Asked by
Krista
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or