Kendo UI ListView -TypeError: a is undefined -
update action doesn't fire on clicking save button on edit template, can please help?
error see in firebug typeerror: undefined
...ages.overwritefile,e),"confirm"))return null;if(l)return l;for(t=0,n=s.length;n>...
var datasource = new kendo.data.datasource({ transport: { update: { url: appurl('productdescriptionupload/update'), datatype: "json", type: "post" } pagesize: 1, serverpaging: true, schema: { data: "data", total: "total" }, model: { id: "id", fields: { id: { editable: false, nullable: true }, name: "name", language: { type: "string" }, discontinued: { type: "string" } } } }); var listview = $("#listview").kendolistview({ datasource: datasource, template: kendo.template($("#template").html()), edittemplate: kendo.template($("#edittemplate").html()) }).delegate(".k-edit-button", "click", function (e) { listview.edit($(this).closest("item")); e.preventdefault(); }).delegate(".k-delete-button", "click", function (e) { listview.remove($(this).closest(".item")); e.preventdefault(); }).delegate(".k-update-button", "click", function (e) { listview.save(); e.preventdefault(); }).delegate(".k-cancel-button", "click", function (e) { listview.cancel(); e.preventdefault(); }).data("kendolistview"); }); <script type="text/x-kendo-tmpl" id="template"> <div class="edititem"> <p> name:#: name #</p> <p>language:#: language #</p> <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>
Comments
Post a Comment