Working w/a C# MVC Project that displays a Company's information if the user chosen from a ComboBox EXISTS. One of the data fields displayed is the Company's State which is itself a ComboBox:
@(Html.Kendo().ComboBox()
.Name("CompanyState")
.Placeholder("Select a state...")
.BindTo((List<string>)ViewBag.StateNames)
.Value("NV")
.Suggest(true)
)
Note that when the ComboBox is first created, its data source is bound to the List in "ViewBag.StateNames".
When the data is displayed, I DISABLE the "CompanyState" ComboBox as there is no need for the App User to enter the data.
$("#CompanyState").kendoComboBox({ enabled: false });
My problem is when I need to ENABLE the "CompanyState", I lose the binding to the List in "ViewBag.StateNames". My question then is: how can I rebind to that List?