Hi
How can I assign a custom icon to an action and change it when clicked?
So far I have the window opening and I have successfully attached the click events - now how do I change the icon after it has been clicked (and before).
One more question....
How exactly does this .data("kendoWindow") work? Does Kendo places a reference to itself in the jQuery .data() action of the element that is transformed to a Kendo Window?
Thanks,
How can I assign a custom icon to an action and change it when clicked?
So far I have the window opening and I have successfully attached the click events - now how do I change the icon after it has been clicked (and before).
$(
"#idExplorerReal"
).kendoWindow({
actions: [
"Expand"
,
"Custom"
,
"Close"
],
draggable:
true
,
height:
"500px"
,
width:
"300px"
,
minHeight: 500,
minWidth: 250,
modal:
true
,
visible:
true
,
resizable:
true
,
title:
"Explorer"
,
close: onCloseWin
});
var
kendoWindow = $(
"#idExplorerReal"
).data(
"kendoWindow"
);
var
vv = kendoWindow.wrapper.find(
".k-i-custom"
);
vv.click(
function
(e) {
alert(
"custom"
);
});
var
vv2 = kendoWindow.wrapper.find(
".k-i-expand"
);
vv2.click(
function
(e) {
alert(
"expand"
);
});
One more question....
How exactly does this .data("kendoWindow") work? Does Kendo places a reference to itself in the jQuery .data() action of the element that is transformed to a Kendo Window?
Thanks,