Hi,
the grid popup editor window's close event is fired twice when closing the popup window via the close button (not the cancel or save button).
See this dojo: http://dojo.telerik.com/IdIYe
Even using the "one" binding produces a duplicate event:
edit:
function
(e) {
e.container.data(
"kendoWindow"
).one(
"close"
, onEditorClosed);
}
I depend on this event being fired only once, because I'm trying to fix my previous issue with flashing nested modal windows (http://www.telerik.com/forums/avoid-overlay-flash-with-nested-modal-windows).
I tried to debug the code: _close() of window is called twice, once via _windowActionHandler() and once via _destroyEditable() -> close(). The strange thing is that both code paths seem to operate on different _events objects. The first code path calls and removes the "one" event handler from _events, but on the second path, _events appears to be unchanged, i.e. the "one" event handler is still there and called again.
Any clues? Looks like a bug to me.
Regards
Kasimier Buchcik