or
//State ComboBox<td><span class="k-widget k-combobox k-header" style="width: 180px;"><span class="k-dropdown-wrap k-state-default" unselectable="on" tabindex="-1"><input class="k-input" type="text" autocomplete="off" name="State_input" style="width: 100%;" role="combobox" aria-expanded="false" placeholder="Select..." tabindex="0" aria-disabled="false" aria-readonly="false" aria-autocomplete="list" aria-owns="State_listbox" aria-busy="false" aria-activedescendant="State_option_selected"><span class="k-select" unselectable="on" tabindex="-1"><span class="k-icon k-i-arrow-s" unselectable="on" role="button" tabindex="-1" aria-controls="State_listbox">select</span></span></span><input id="State" class="k-invalid" style="width: 180px; display: none;" validationmessage="This is a required field." required="required" data-value-primitive="true" data-bind="value:State.Code" name="State" data-role="combobox" aria-disabled="false" aria-readonly="false" aria-invalid="true"><div class="k-widget k-tooltip k-tooltip-validation k-invalid-msg" style="margin: 0.5em;" data-for="State" role="alert"><span class="k-icon k-warning"> </span>This is a required field.<div class="k-callout k-callout-n"></div></div></span></td>//ZIp text Box<td><input id="Zip" class="k-input k-textbox k-invalid" type="Zip" style="width:180px;" validationmessage="This is a required field." required="required" maxlength="10" data-bind="value:Zip" name="Zip" aria-invalid="true"><div class="k-widget k-tooltip k-tooltip-validation k-invalid-msg" style="margin: 0.5em;" data-for="Zip" role="alert"><span class="k-icon k-warning"> </span>This is a required field.<div class="k-callout k-callout-n"></div></div></td> <tr>
<td>
<input type="text" id="City" class="k-input k-textbox" name="City" data-bind="value:City" maxlength="30" required="required" validationMessage="This is a required field." style="width:180px;"/>
</td>
</tr> <input id="State" name="State" data-bind="value:State.Code" data-value-primitive="true" required="required" validationMessage="This is a required field." style="width: 180px;" />
</td>
</tr>
<input type="Zip" id="Zip" class="k-input k-textbox" name="Zip" data-bind="value:Zip" maxlength="10" required="required" validationMessage="This is a required field." style="width:180px;" />
<span data-for="Zip" class="k-invalid-msg"></span>
</td>
</tr>.k-tooltip-validation.k-invalid-msg{ display:inline-block; } .k-invalid-msg .k-callout{ display:none;}$("#State").kendoComboBox({ placeholder: "Select...", dataTextField: "Code", dataValueField: "Code", headerTemplate: '<div class="dropdown-header">' + '<span class="k-widget k-header">Code</span>' + '<span class="k-widget k-header">Name</span>' + '</div>', valueTemplate: '<span>#:data.Code#</span>', template: '<span class="k-state-default">#:data.Code#</span>' + '<span class="k-state-default">#:data.Name#</span>', dataSource: { transport: { read: { url: crudServiceBaseUrl + "/GetStates" } } }, filter:"startswith" });function onClickPostBatch(e) { var dataItem = this.dataItem($(e.target).closest("tr")); //document.body.style.cursor = "wait"; $("html").css("cursor", "wait"); $.post('@Url.Action("PostBatch", "Home")', { batchId: dataItem.BatchID }, function (data) { if (data.error) { alert('' + data.message); } else { alert(data.message); location.reload(); } }); //document.body.style.cursor = "default"; $("html").css("cursor", "default");schema: { type: "xml", data: "/xmlResponse/Contacts/Contact", model: { id: "NameSequence", fields: { name: "Name/text()", phoneNumber: "PhoneNumber/text()", email: "Email/text()", nameSequence: "NameSequence/text()" } } }schema: { model: { id: "ProductID", fields: { ProductID: { editable: false, nullable: true }, ProductName: { validation: { required: true } }, UnitPrice: { type: "number", validation: { required: true, min: 1} }, Discontinued: { type: "boolean" }, UnitsInStock: { type: "number", validation: { min: 0, required: true } } } }$("#AlertListView").kendoListView({ dataSource: { data: [] }, template: "<li>#: message #</li>", displayMessages: function( messages ) { ... }, hideMessages: function( ) { ... }});var customerSearchLayout = new kendo.Layout($('#customer-search-view-template').html()); customerSearchLayout.render($("#searchCust")); var addCustomerView = new kendo.View($('#add-customer-view-template').html()); var customerGridView = new kendo.View($('#customer-grid-view-template').html()); var layout = new kendo.Layout("<div id='content' class='contentDiv'></div>"); layout.render($("#main")); layout.showIn("#content", customerGridView);var customerSearch = kendo.observable({ customerName: "Customer name", searchClicked: function() { this.set("customerName", "Search clicked"); }, newClicked: function(e){ e.preventDefault(); this.trigger("newCustomerClicked"); } }); customerSearch.bind("newCustomerClicked", function(){ layout.render($("#main")); layout.showIn("#content", addCustomerView, "swap"); }); // Bind the view model to the customer element. kendo.bind($('#searchCustomer'), customerSearch);<form id="addCustForm"><label for="txtFname">First name</label> <input id="fname" data-bind="value: firstName" class="k-textbox" /></form>// observable object of add customer var customerAdd = kendo.observable({ firstName: "Hello world!" }); // Bind the view model to the customer element. kendo.bind($('#addCustForm'), customerAdd);