This behavior is the expected one, because you use the DestroyOnClose="true
" property in the RadWindowManagers
's declaration and the windows, declared in its Window collection, inherit it. In this case if you close the RadWindow
it will be destroyed and then if you call the radopen() function with the
ID of the closed window a new window will be created instead. The newly created window has the behavior declared in the RadWindowManager
- in your case the OnClientClose
declaration does not exist there.
To solve this, you could use one of the following approaches:
- set value "false" to the DestroyOnClose property or do not declare it - DestroyOnClose is set to "false" by default
- move the OnClientClose property to the RadWindowManager's declaration - in this case every opened window will have attached the OnClientClose function.
I hope this helps.
All the best,
the Telerik team