This is a migrated thread and some comments may be shown as answers.

nested radWindows

4 Answers 151 Views
Window
This is a migrated thread and some comments may be shown as answers.
Chris O
Top achievements
Rank 1
Chris O asked on 02 Jul 2008, 09:13 PM
I have a main aspx page with window manager that calls a radWindow.  window1.  this window then calls window2.  I want to set the call_back funtion to a function in window1, but i cant refrence it.

I am using this.

var

parentPage = GetRadWindow().BrowserWindow;
var dialogB = parentPage.GetRadWindowManager().GetWindowByName("taxesPaid");
oWindow.add_close(dialogB.GetContentFrame().contentWindow.CallBack1300);
oWindow.Close();

I get a stack overflow at 0.  any advice?

4 Answers, 1 is accepted

Sort by
0
Vitaly
Top achievements
Rank 1
answered on 04 Jul 2008, 11:02 AM
I also have the same problem as Chris described: add_close() (and also other add_/remove_ methods like add_command()) does not work in the "nested" RAD windows: the "Stack overflow at line: 0" error is always shown.

I have used a JScript debugger and discovered there is an infinite loop of ValidateParameter() method calls.

Could you guys advice something about it soon?
0
Svetlina Anati
Telerik team
answered on 07 Jul 2008, 01:36 PM
Hello guys,

I preapared a sample demo project, based on the provided information. I set the close function with a little timeout, in order to let the script get outputted on the second dialog's content page:

setTimeout(function(){oWindow.add_close(dialogB.get_contentFrame().contentWindow.Test); oWindow.close();}, 100); 

My project worked as expected and no error was thrown.

Please examine the attached project and in case it does not help in solving the problem, please open a new support ticket and send a sample, fully working reproduction project along with a detailed explanation of the problem and the desired behavior. Once I receive it, I will do my best to help.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Vitaly
Top achievements
Rank 1
answered on 15 Jul 2008, 08:25 AM
Hi Svetlina,

Thank you for your example but, unfortunately, it does not work if you have compilation debug="true" in your web.config file (and if you have false the add_close() works without setting the timer).

I have looked on other topics that described similar problems and come to a conclusion there is no way to use nested r.a.d. windows but have compilation debug="false" in your web.config file. It is very sad but...

Best wishes,
Vitaly
0
Svetlina Anati
Telerik team
answered on 15 Jul 2008, 12:18 PM
Hi Vitaly,

As to the Debug setting in the Web.config, I suggest to examine this forum thread which discusses the same subject.

Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Chris O
Top achievements
Rank 1
Answers by
Vitaly
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or