Last post Feb 21, 2012 03:44 PM by sjnaughton
Feb 20, 2012 04:10 PM|pallone|LINK
I am reading your excellent tutorials on DD and cascading drop down list box.
I am creating a simple site where I scaffold only one table. However, during edit and insert I have a situation where I would like to user your cascading solution.
When inserting a new user the screen displays two drop down lists. One for choosing the
company and the other for choosing the company location the user will belong to.
Currently, the drop down list for the location is showing all locations and not filtering by the company selected in the other drop down list.
Since you have created many samples for cacading using FieldTemplates and based on my scenario i.e. using Entity Framework and DomainService with the default DD template for VS 2010 and NET 4, could you please advise what sample of yours shall I
use and what tutorial shall I use?
Feb 20, 2012 04:33 PM|sjnaughton|LINK
HI Pallone, I don't think mu Linq expression will work with DS sorry I have not had the time or great reason for migrating to DS sorry.
Feb 20, 2012 04:49 PM|pallone|LINK
I thought that the CascadeHierarchicalFieldTemplate - 2010-11-10a demo would work with DomainService as well but I was wrong.
Are your Linq expressions difficult to change?
Is there another way to achieve this? Since I am using a custom entity page for the edit, could I disable the location drop down box until something is selected in the company drop down box and then populate the location list based on the company id selected
in the company list?
Where would I be able to add this code?
Feb 20, 2012 05:00 PM|sjnaughton|LINK
I've3 not looked but Linq Expression area little difficult to get your head around (unless you are an expert which I am not.) but feel free to give it a try.
Feb 20, 2012 05:02 PM|pallone|LINK
What sample of yours is the easiest for me to try and get started?
Also is there another way to do that? Please see my second question above?
Feb 21, 2012 09:41 AM|sjnaughton|LINK
All the code is here in this post here
Cascading Filters and Fields – Dynamic Data Entity Framework Version this has the latest bits and source in the attached project Listing 5 has the PoulateListControl and Listign 8 had the Linq Expression methods you may need to work with.
Feb 21, 2012 01:40 PM|pallone|LINK
Thanks for your help and support.
I had a look at the sample you mentioned above and am trying to get my head around it.
Also, I am having a look and trying to understand one of your ealier samples:
Monday, 19 January 2009
Dynamic Data – Cascading FieldTemplates
This sample seems not to use your Linq expression and since I am using DomainSerive, it might be easier to use this one.
What do you think?
If I cannot get this to work, would it be possible for you to have a look at my application and help to figure out where I am not implementing your code in the right way?
Feb 21, 2012 03:44 PM|sjnaughton|LINK
They all use Linq expression somewhere sorry, they may be using the LinqHelper from the old DD Preview.