php - KendoUI Grid Custom Popup template for create button -
i have installed kendogrid popup option.
now stuck someplace , cant find fix way want..
so here problem facing kendogrid popup editing.
when click add new record, header on top shows edit, same shows on when click on edit.
http://jsfiddle.net/valchev/bcbzs/1/
also button shows update, instead should save button on create popup window..
i think have add more below creating new record..
editable: { mode: "popup", template: kendo.template($("#popup_editor").html()) },
and have popup create template different edit template?
can me resolve issue?
if @ demo page popup editing seems normal behaviour...
but can trick , use edit
event of grid in order change that. add @ beginning of event following code :
if(!e.model.id) { $(".k-window .k-window-title").text("add new record"); $(".k-window .k-grid-update").html("<span class=\"k-icon k-update\"></span>create"); }
see updated jsfiddle.
Comments
Post a Comment