Click here to Skip to main content
14,085,084 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: bad
 
good
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190518.1 | Last Updated 2 Apr 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

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