self.callEvent when closing windows

Hi,

i have a strange behaviour :
i have a modal window with grid inside.
when i double click a row in the grid, i want to close the modal window.

in that case, i have an error message “self.callEvent is not a function” (see attached file)
i i put just after the call to close() an alert(), that’s work (but i don’t want this alert)

do you have a way to avoid this error ?

(i see some post suggesting a inner_close issue, but i don’t find the sample in dhtmlxform 2.6 or 3.0beta)
thanks.
bug_close.zip (890 Bytes)

you need to set a timout to your window.close method:

window.setTimeout(function(){ dhxWins.window("Profils").close(); },200)

that’s work !!! thanks