alexanderar / Mvc.CascadeDropDown

MIT License
26 stars 12 forks source link

Not passing value to controller anymore #35

Closed wolfgangjt closed 5 years ago

wolfgangjt commented 5 years ago

I have multiple CDDs in multiple partial views. I am assigning them independent ID's based on the partial that was loaded, and I load the partial view items into a html.beginCollection.

This was working a few months ago but suddenly stopped working. The value correctly exists in the correct CDD all the way until it is submitted to the controller, where it loses its value and is set to NULL. I ensured that my functions are mapping correctly by using a hiddenFor and seeing if I can map a value through to the controller and it works fine.

I cannot post code because it is hosted on another intranet system.

I have a Drop Down List, a CDD that triggers off that, another CDD that triggers off that, and another CDD that triggers off that.

The CDDs have the value mapped to it "Html.CDDFor(m => m.CDDItemOne.... , new{@id="CDDItemOne"+suffix})

where suffix is generated upon loading the partial view.

Anyone have any ideas at what I can try?