This question is locked. New answers and comments are not allowed.
I have a kendo combobox
Onchange, a textbox is loaded in ajax. A submit button posts the textbox value and combobox value to the controller. When I get back to the view, I need ddSystems to be reset to empty.
I used
and
but it always retains the previously selected value. Since I use ajax, this will not display the textbox and I am stuck. Please help.
@(Html.Kendo().ComboBox() .Name("ddSystems") .Filter("contains") .Placeholder("-- Select --") .BindTo((IEnumerable)ViewBag.systemList) )Onchange, a textbox is loaded in ajax. A submit button posts the textbox value and combobox value to the controller. When I get back to the view, I need ddSystems to be reset to empty.
I used
$('#ddSystems').data('kendoComboBox').value(null)and
$('#ddSystems').data('kendoComboBox').text('')but it always retains the previously selected value. Since I use ajax, this will not display the textbox and I am stuck. Please help.