Click here to Skip to main content
14,218,620 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100