Hi ,
I have a problem with validation for dropdown on click of submit. The validation triggers in Chrome but IE9 doesnt support, so could any one suggest a work around for IE.
Here is the dropdown UI
<div id="ModalMaterialCodeMappingForm">
<div class="editor-row" style="padding-bottom: 1em;">
<div class="selector-type-column">
@(Html.Kendo().DropDownList().Name("editMappingTerminalSearchTypeDropDownList")
.DataTextField("Text").DataValueField("Value").BindTo(Model.TerminalSearchType))
</div>
<div class="float-left editor-label" style="width: 80px;">
@Html.LabelFor(model => model.TerminalName)
</div>
<div class="float-left">
@Html.TextBoxFor(model => model.TerminalName, new {selectedValue = "0", @class = "selector"}) <span style="color:red">*</span><span class="k-invalid-msg" data-for="TerminalName"></span>
</div>
<div class="clear"></div>
</div>
the dropdown is an autocomplete which has a placeholder, if i remove the place holder the validation triggers.
textBoxField.kendoAutoComplete({
minLength: 1,
dataTextField: "Value",
dataValueField: "Key",
filter: "contains",
placeholder: placeHolderText
});
I have attached the screenshots.
I have a problem with validation for dropdown on click of submit. The validation triggers in Chrome but IE9 doesnt support, so could any one suggest a work around for IE.
Here is the dropdown UI
<div id="ModalMaterialCodeMappingForm">
<div class="editor-row" style="padding-bottom: 1em;">
<div class="selector-type-column">
@(Html.Kendo().DropDownList().Name("editMappingTerminalSearchTypeDropDownList")
.DataTextField("Text").DataValueField("Value").BindTo(Model.TerminalSearchType))
</div>
<div class="float-left editor-label" style="width: 80px;">
@Html.LabelFor(model => model.TerminalName)
</div>
<div class="float-left">
@Html.TextBoxFor(model => model.TerminalName, new {selectedValue = "0", @class = "selector"}) <span style="color:red">*</span><span class="k-invalid-msg" data-for="TerminalName"></span>
</div>
<div class="clear"></div>
</div>
the dropdown is an autocomplete which has a placeholder, if i remove the place holder the validation triggers.
textBoxField.kendoAutoComplete({
minLength: 1,
dataTextField: "Value",
dataValueField: "Key",
filter: "contains",
placeholder: placeHolderText
});
I have attached the screenshots.