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

Telerik window window.radopen results on IE error on page

5 Answers 83 Views
Window
This is a migrated thread and some comments may be shown as answers.
Steve Holdorf
Top achievements
Rank 1
Steve Holdorf asked on 01 Jul 2010, 01:55 PM
I am updating to the telerik 2010 ajax controls. When I convert a rad window to a telerik window the javascript, when run gives error on page. My code below:

function {
var url = "window1.aspx";
window.radopen(url, "window name");
}

<telerik:RadWindowManager ID="RadWindowManager" runat="server">
<Window>
<telerik:RadWindow ID = "RadWindow1" runat="server" Behaviors="Default" />
</Window>
</telerik:RadWindowManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="True">
<AjaxSettings>
............ as was before except changed rad to telerik

Now, when I select my button that calls the javascript the function is called (my alert("hello"); displays as a test) but when I remove the alert command I get an IE error on page. is there something I am doing wrong. Everything works when I use the old rad name space but doesn't when I change it to telerik.

Thanks,

Steve Holdorf

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Jul 2010, 02:15 PM
Hello,

When opening RadWindow using window.radopen method, the second argument must be the ID of RadWindow (which is RadWindow1, in your case). If this is given an argument of null, the function creates a new window.

Try the code below and see whether it helps.
         var url = "window1.aspx";
         window.radopen(url, "RadWindow1");

[where RadWindow1 is already added on page.]

Also go through the following documentation:
Opening Windows

Thanks,
Princy.
0
Steve Holdorf
Top achievements
Rank 1
answered on 01 Jul 2010, 02:41 PM
Sorry for the confusion. I was using the ID of the RadWindow as the second paramter but when having problems I converted it to the string "window name" and was still having the problem. I have fixed the second paramter to the RadWindow ID and still get IE error on page.

Thanks,


Steve Holdorf
0
Steve Holdorf
Top achievements
Rank 1
answered on 01 Jul 2010, 02:43 PM
Also, one note. I did go through the documents at the link you provided and tried every example without success.

Thanks,


Steve  Holdorf
0
Steve Holdorf
Top achievements
Rank 1
answered on 01 Jul 2010, 08:56 PM
One other note: My RadDateTimePicker does not popup either?

Thanks,


Steve
0
Georgi Tunev
Telerik team
answered on 05 Jul 2010, 12:29 PM
Hello Steve,

To be able to help we need to have a better view over your exact setup and logic. Please open a support ticket and send us a sample project where the problem could be reproduced so we can investigate further.


Kind regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Steve Holdorf
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Steve Holdorf
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or