This question is locked. New answers and comments are not allowed.
I'm trying to add a set of cascading combo boxes to my MVC4 application. However, the problem I'm having is that the controller is not receiving the selected item from the first combo box. The method is being called, but the parameter is null. This is what the view looks like:
And here is the code in the controller:
FlightDataId is my parameter and it comes back null after I select an item from the first combo. I have looked at your examples and I don't see what I am doing wrong. Any help would be appreciated.
<p> <label for="ComboBox_Flights-input">Flights</label> @(Html.Telerik().ComboBoxFor(x => x.SelectedFlightDataId) .Name("ComboBox_Flights") .BindTo(new SelectList(Model.ValidFlights, "FlightDataId", "LineAndNumber")) .CascadeTo("ComboBox_BoardingSequences") )</p><p> <label for="ComboBox_BoardingSequences-input">Boarding Sequences</label> @(Html.Telerik().ComboBoxFor(x => x.SelectedTemplateId) .Name("ComboBox_BoardingSequences") .DataBinding(binding => binding.Ajax().Select("_GetValidBoardingSequencesForFlight", "BoardingSequence")) )</p>And here is the code in the controller:
[HttpPost] public JsonResult _GetValidBoardingSequencesForFlight(int? FlightDataId) {// ... snip ... }FlightDataId is my parameter and it comes back null after I select an item from the first combo. I have looked at your examples and I don't see what I am doing wrong. Any help would be appreciated.