This question is locked. New answers and comments are not allowed.
I have 2 Cascading DropDownLists:
If I post the form they are in , and there is an error on the form, I'm calling the view again with the same ViewModel
(populating correctly the Model.Countries.
How can I reBind the State DropDown list with the list of right states and on the same state that was submitted ?
(The value is in the Model.nStateID)
@Html.Telerik().DropDownListFor(m => m.nCountryID).BindTo(Model.Countries).Placeholder("Select Country").CascadeTo("nStateID")
@(Html.Telerik().DropDownListFor(m => m.nStateID).Name("nStateID")
.DataBinding(binding => binding.Ajax().Select("_GetDropDownListStates", "User")).Placeholder("Select State")
If I post the form they are in , and there is an error on the form, I'm calling the view again with the same ViewModel
(populating correctly the Model.Countries.
How can I reBind the State DropDown list with the list of right states and on the same state that was submitted ?
(The value is in the Model.nStateID)