Hi,
Is it possible to create the custom popup editor dynamically? I have a grid merging different objects would like like to change popup editor dynamically. Usually, I used this form and it works fine:
editable: {
mode:
"popup"
,
template: kendo.template($(
"#allRequestEditGridTemplate"
).html()),
confirmation:
"@Html.Raw(@LocString["
STR_DeleteConfirmation
"])"
,
},
However, I would like use something like this and it does not work. I got correct template shown, but no update button....
edit:
function
(e) {
var
editWindow =
this
.editable.element.data(
"kendoWindow"
);
if
(e.model.CategoryType == 1
/*Document*/
)
{
editWindow.content($(
"#docEditTemplate"
).html());
}
else
if
(e.model.CategoryType == 2
/*Piping*/
)
{
editWindow.content($(
"#pipingEditTemplate"
).html());
}
}
Thank you for your help