or

this.get("name")<input type="text" data-value-update="keyup" data-bind="value: searchText, events: { keyup: searchForItem }" />//app is global
app.viewmodels.carsViewModel.get("cars").push(car);<div id="carsView" data-role="view" data-model="app.viewmodels.carsViewModel">When I set the toolbar to display a delete button, nothing happens when I click on it.
But it works when I add a destroy column. Should I do something special to active the delete button in toolbar?
here is my code:
$("#grid").kendoGrid({ dataSource: _ds, height: 350, scrollable: false, pageable: true, sortable: false, //selectable: "multiple, row", navigatable: true, columns: [ //{title: "Id", field: "Id", width: 150}, {title: "Name", field: "Name", width: 150}, {title: "Description", field: "Description", width: 300} ], toolbar: ["create", "destroy", "save", "cancel"], editable: true });_ds = new kendo.data.DataSource({ type: "json", serverPaging: true, serverSorting: true, pageSize: 15, batch: false, transport: { read: { url: "@Url.Action("GetRoles", "Role", new { area = "UserManagement"})" }, update: { url: "@Url.Action("UpdateRole", "Role", new { area = "UserManagement" })" }, destroy: { url: "@Url.Action("DeleteRole", "Role", new { area = "UserManagement" })" }, create: { url: "@Url.Action("CreateRole", "Role", new { area = "UserManagement" })" } }, schema: { data: function(data) { return data.result; }, total: function(data) { return data.totalCount; }, model: { id: "Id", fields: { Id: { editable: false, nullable: false }, Name: { editable: true, validation: { required: true } }, Description: { editable: true, validation: { required: false } } } } }, error: function (e) { var json = jQuery.parseJSON(e.responseText); alert("An error has occured: " + json.Message); } });