This question is locked. New answers and comments are not allowed.
HI All,
Here's the background to my problem. I have a table Made up of uniqueId with a Foreign key of ManufacturerId, then I have things like Model, cc, Year Of Manufactuer.
Now I have a cascade Combo of:
Now My first dropdown shows my manufacturers ok and then my Models are also shown no Problem, (all this info is in 1 table it cannot be normalised further to make life easier). My problem is that by the time I get to populating my Years, I've lost the manufacturer Id. since the PK is being passed down. So I select 'Ford' for manufacturer and 'Capri' for model, but when it returns my different years of manufacture for capri I receive invalid years, because at this point I cannot use the ManufacturerID, and so I get Capri's by other Manufacturers also being returned. What I really want to do is pass my Original Manufacture ID from the parent dropdown to the child
Here's the background to my problem. I have a table Made up of uniqueId with a Foreign key of ManufacturerId, then I have things like Model, cc, Year Of Manufactuer.
Now I have a cascade Combo of:
@(Html.Telerik().ComboBox()
.Name("Manufacturer")
.BindTo(new SelectList(Model.ManufacturerTypes, "Value", "Text"))
.Placeholder("-- Select --")
.CascadeTo("Dropdown_Model")
)
@(Html.Telerik().ComboBox()
.Name("Dropdown_Model")
.DataBinding(binding => binding.Ajax().Select("GetDropDownModels", "RoadRisk"))
.Placeholder("-- Select --")
.CascadeTo("Dropdown_Year")
@(Html.Telerik().ComboBox()
.Name("Dropdown_Year")
.DataBinding(binding => binding.Ajax().Select("GetDropDownYears", "RoadRisk"))
.Placeholder("-- Select --")
.CascadeTo("Dropdown_CC")
)
)
Now My first dropdown shows my manufacturers ok and then my Models are also shown no Problem, (all this info is in 1 table it cannot be normalised further to make life easier). My problem is that by the time I get to populating my Years, I've lost the manufacturer Id. since the PK is being passed down. So I select 'Ford' for manufacturer and 'Capri' for model, but when it returns my different years of manufacture for capri I receive invalid years, because at this point I cannot use the ManufacturerID, and so I get Capri's by other Manufacturers also being returned. What I really want to do is pass my Original Manufacture ID from the parent dropdown to the child