|
@Html.EJS().ComboBox("customers").Placeholder("Select Job Type Category").ShowClearButton().DataSource(dataManger =>{dataManger.Url("/api/values").Adaptor("WebApiAdaptor").CrossDomain(true);}).Fields(newSyncfusion.EJ2.DropDowns.ComboBoxFieldSettings { Value = "CustomerID", Text = "CustomerID"}).Value("HANAR").Width("300").Autofill(true).Render() |
|
@Html.EJS().ComboBox("customers").Placeholder("Select Job Type Category").ShowClearButton().DataSource(dataManger => { dataManger.Url("/api/values").Adaptor("WebApiAdaptor").CrossDomain(true); }).Fields(new Syncfusion.EJ2.DropDowns.ComboBoxFieldSettings { Value = "OrderID", Text = "CustomerID" }).Value(10250).Width("300").Autofill(true).AllowCustom(true).ActionComplete("onComplete").Render()
<script>
function onComplete(args) {
var ins = document.getElementById("customers").ej2_instances[0];
ins.value = parseInt(ins.value);
}
</script> |