Telerik window window.radopen results on IE error on page

6 posts, 0 answers
  1. Steve Holdorf
    Steve Holdorf avatar
    119 posts
    Member since:
    Apr 2010

    Posted 01 Jul 2010 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Jul 2010 Link to this post

    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.
  3. Steve Holdorf
    Steve Holdorf avatar
    119 posts
    Member since:
    Apr 2010

    Posted 01 Jul 2010 Link to this post

    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
  4. Steve Holdorf
    Steve Holdorf avatar
    119 posts
    Member since:
    Apr 2010

    Posted 01 Jul 2010 Link to this post

    Also, one note. I did go through the documents at the link you provided and tried every example without success.

    Thanks,


    Steve  Holdorf
  5. Steve Holdorf
    Steve Holdorf avatar
    119 posts
    Member since:
    Apr 2010

    Posted 01 Jul 2010 Link to this post

    One other note: My RadDateTimePicker does not popup either?

    Thanks,


    Steve
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 05 Jul 2010 Link to this post

    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
Back to Top