Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a form with a tow combobo and i went to filter them.

ie: the second combo depends on the first.

What I have tried:

i tried more of possibility but nothing.
Posted
Updated 2-Apr-18 5:53am
Comments
F-ES Sitecore 3-Apr-18 4:36am    
google "entity framework cascading dropdown" or "entity framework cascading combobox"

1 solution

I would write a method in my dbcontext class that performed the necessary filtering, and bind the returned collection to the combo box. Of course, this would probably be pretty slow if you were filtering as the user typed something, but it's certainly doable.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900