I posted a ticket about this problem on 4/10, Thursday night. I haven't received a response yet, so I thought I pose the same question to the general community to see if any other users out there might have some ideas.
I'm having a bit of trouble with a RadWindow in conjunction with radconfirm. Here's my scenario:
- I have a page with a RadAjaxManager, a RadWindowManager, and 2 buttons.
- There's an AjaxSetting to update the RadWindowManager when the first button is pushed. In the code-behind for the button click event, a RadWindow is created and added to the RadWindowManager and the VisibleOnPageLoad property for the RadWindowManager is set to true. In effect, this allows me to open a window via server-side code; something I need to do because I must first save a database record before I open the window.
- The second button has an OnClientClick action defined that calls radconfirm.
Here's the problem:
- If I press button1 after the page loads, it works fine.
- If I press button2 after the page loads, it works fine.
- If I first press button1, close the window, and then press button2, I get the following javascript error "Microsoft JScript runtime error: 'this._windows.length' is null or not an object".
- If I disable Ajax, everything works fine. I can press button1 or button2. I can first press button1 and then button2. All works fine.
If I comment out the code in the button1 code-behind, the problem still exists. From what I can tell, the problem is not caused by the code in the button1 OnClick handler, but rather by the fact that button1 Ajax updates the RadWindowManager.
Any ideas?