Hello,
by using the below code i am trying to open the kendo window on button click this is working fine.
function OpenWindow() {
var dialog = $("#window-prototype").clone().kendoWindow({
width: "500px",
height: "280px",
modal: false,
resizable: true,
actions: ["Custom", "Minimize", "Maximize", "Close"],
title: "OrderEntry"
}).show().data("kendoWindow").open().center();
my requirement is i need to perform some action on custom button click on kendo window.So I added event in the javascript function
function OpenOrderEntry() {
var dialog = $("#window-prototype").kendoWindow({
width: "500px",
height: "280px",
modal: false,
resizable: true,
actions: ["Custom", "Minimize", "Maximize", "Close"],
title: "OrderEntry"
}).data("kendoWindow").wrapper.find(".k-custom").click(function (e) {
alert("Custom action button clicked");
e.preventDefault();
});
dialog.data("kendoWindow").open(); <== Error
}
but it is throwing the below given error "Microsoft JScript runtime error: 'data(...)' is null or not an object".
Regards,
Ravi
by using the below code i am trying to open the kendo window on button click this is working fine.
function OpenWindow() {
var dialog = $("#window-prototype").clone().kendoWindow({
width: "500px",
height: "280px",
modal: false,
resizable: true,
actions: ["Custom", "Minimize", "Maximize", "Close"],
title: "OrderEntry"
}).show().data("kendoWindow").open().center();
my requirement is i need to perform some action on custom button click on kendo window.So I added event in the javascript function
function OpenOrderEntry() {
var dialog = $("#window-prototype").kendoWindow({
width: "500px",
height: "280px",
modal: false,
resizable: true,
actions: ["Custom", "Minimize", "Maximize", "Close"],
title: "OrderEntry"
}).data("kendoWindow").wrapper.find(".k-custom").click(function (e) {
alert("Custom action button clicked");
e.preventDefault();
});
dialog.data("kendoWindow").open(); <== Error
}
but it is throwing the below given error "Microsoft JScript runtime error: 'data(...)' is null or not an object".
Regards,
Ravi