or
<input type="hidden" data-bind="value:Id" /><br /> <input type="text" placeholder="First name" name="FirstName" maxlength="30" data-bind="value:FirstName" id="id_firstName" /><br /> <input type="text" placeholder="Last name" name="LastName" maxlength="30" data-bind="value:LastName" id="id_lastName" /><br /> <input type="text" placeholder="Email" name="email" maxlength="30" data-bind="value:Email" id="id_email" /><br /> <input id="timeZones"> <button data-bind="click: save" class="btn">Save</button>$("#timeZones").kendoComboBox({ index: 0, placeholder: "Select Time Zone", dataTextField: "DisplayName", dataValueField: "Id", filter: "contains", dataSource: { type: "json", transport: { read: "/api/TimeZone/Get/" } } });Widget.extend.setDataSource (kendo.all.js:16654)binders.widget.source.Binder.extend.refresh (kendo.all.js:7740)Class.extend.bind (kendo.all.js:7109)BindingTarget.extend.applyBinding (kendo.all.js:7931)BindingTarget.extend.bind (kendo.all.js:7910)bindElement (kendo.all.js:8065)bind (kendo.all.js:8088)(anonymous function) (gridtest.html:23)<div class="k-toolbar k-grid-toolbar"> <a id="addRoleButton" class="k-button k-button-icontext k-add-button" href="#"><span class="k-icon k-add"></span>Add new Role</a></div> @(Html.Kendo().ListView<iProjX.Models.RoleModel>(Model.Roles) .Name("rolesListView") .TagName("div") .ClientTemplateId("rolesList") .Editable() .Pageable() .DataSource(dataSource => dataSource .Model(model => { model.Id("RoleId"); model.Field(f => f.ProjectId).DefaultValue(Model.ProjectId); model.Field(f => f.Title); model.Field(f => f.Description);; }) .Events(e => e .Error("rolesListViewData_error") .Change("rolesListViewData_change") .RequestStart("rolesListViewData_requestStart")) .Create(create => create.Action("createRole", "Project")) .Read(read => read.Action("getRoles", "Project", new { projectId = Model.ProjectId })) .Update(update => update.Action("updateRole", "Project")) .PageSize(30) ) .Events(e => e .Change("rolesListView_change") .Edit("rolesListView_edit") .DataBound("rolesListView_databound")) )//View template<script type="text/x-kendo-template" id="rolesList"> <div class="roleView" > <div> ${Title} </div> <div> ${Description} </div> <div class="edit-buttons"> <a class="k-button k-button-icontext k-edit-button" href="\\#"><span class="k-icon k-edit"></span>Edit</a> <a class="k-button k-button-icontext k-delete-button" href="\\#"><span class="k-icon k-delete"></span>Delete</a> </div> </div></script>@model iProjX.Models.RoleModel<div class="roleView" id = "newRoleForm2" > @Html.ValidationSummary(true) @Html.HiddenFor(model => model.ProjectId) @Html.HiddenFor(model => model.RoleId) <div class="editor-label"> @Html.LabelFor(model => model.Title) </div> <div class="editor-field"> @Html.TextBoxFor(model => model.Title, new { style = "width:99%", maxlength = 100 }) <span data-for="Title" class="k-invalid-msg"></span> </div> <div class="editor-label"> @Html.LabelFor(model => model.Description) </div> <div class="editor-field"> @Html.TextAreaFor(model => model.Description, new { style = "width:100%; height:100px"}) <span data-for="Description" class="k-invalid-msg"></span> </div> <div class="edit-buttons"> <a class="k-button k-button-icontext k-update-button" onclick="updateClick()" href="\\#"><span class="k-icon k-update"></span>Save</a> <a class="k-button k-button-icontext k-cancel-button" href="\\#"><span class="k-icon k-cancel"></span>Cancel</a> </d