You are attempting to call a function from the content page when closing the RadWindow. If the content page is not fully loaded the function is not available or it cannot do its work and will throw an exception. It is the developer's responsibility to ensure checks (and/or try-catch blocks) are in place to ensure there are no errors.
What I can suggest is the following:
- check if the function is available, something like:
( oWnd.get_contentFrame().contentWindow &&
//use the oWnd.get_contentFrame().contentWindow.location.pathname object
- add try-catch blocks in the functionality to ensure missing objects will not break your scripts
- raise a flag in the OnClientPageLoad event that will mean that you can call this functionality. Check for that flag in the OnClientBeforeClose event to see if you can execute the logic. You can reset the flag in OnClientClose
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed