Open a Radwindow on Topmost Page ?

2 posts, 0 answers
  1. gzzn
    gzzn avatar
    12 posts
    Member since:
    Jan 2011

    Posted 15 May 2012 Link to this post

    i have 4 pages.

    1.index.aspx
    <iframe src="iframe.aspx">

    2.iframe.aspx
    <input type="button" onclick="window.radopen('window.aspx', 'win');">

    3.window.aspx
    <input type="button" onclick="window.radopen('test.aspx', 'top');">

    4.test.aspx

    when i work in windows.aspx,
    how to open a radwindow 'test.aspx' on topmost page 'index.aspx' ?
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5701 posts

    Posted 16 May 2012 Link to this post

    Hello,

    You only need to get a reference to the desired window object, in this case this is easiest done by calling window.top.radopen() as the top property is a reference to the topmost frame in the frame tree. Note that this requires that you have a RadWindowManager in the main page as well.


    Greetings,
    Marin
    the Telerik team
    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 their blog feed now.
Back to Top