Click here to Skip to main content
14,215,554 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.
Updated 2-Apr-18 5:53am
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)

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190619.2 | 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