Update parent page from controls inside Gridchild RadWindow

3 posts, 1 answers
  1. Prava kafle
    Prava kafle avatar
    212 posts
    Member since:
    Apr 2010

    Posted 17 Dec 2012 Link to this post

    Hi,

    I have an aspx page (Page1.aspx) with RadwindowManager and one of the window inside RadWindowManager1 displays Page2.aspx.

    On Page2.aspx , there is another Child RadwindowManager2, there are some buttons  inside contentemplate of this RadWindowmanager2.
    On clicking these buttons inside Radwindow in radwindowManager2, I would like to update Page1.aspx.
    How can I implement this logic?

    Using "GetCurrentRadWindow().BrowserWindow.ZoomToSelectedAppointment(apptID);" helped me update page1.aspx from Radwindowmanager1, but  this does not work on Radwindow with contentemplate.



        function GetCurrentRadWindow() {
           var oWindow = null;
           if (window.radWindow) oWindow = window.radWindow;
           else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
           return oWindow;
       }



    Thanks for help.
    Prava
  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 19 Dec 2012 Link to this post

    Hi Prava,

    The following demo explains how both RadWindow modes function: http://demos.telerik.com/aspnet-ajax/window/examples/contenttemplatevsnavigateurl/defaultcs.aspx. The essence is that the COntentTemplate is part of the page where the RadWindow is declared. This is Page2.aspx in your case. Since this page is loaded in a RadWIndow itself, using the GetRadWindow() function should return a proper reference. I am also attaching here a simple example on how this works.

    You may also find useful the following two articles on accessing the main page from inside a frame hierarchy:
    http://www.telerik.com/help/aspnet-ajax/window-application-is-page-in-radwindow.html
    http://www.telerik.com/help/aspnet-ajax/window-application-alert-for-entire-page.html

    Regards,
    Marin Bratanov
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Prava kafle
    Prava kafle avatar
    212 posts
    Member since:
    Apr 2010

    Posted 19 Dec 2012 Link to this post

    Hi,

    Thanks for the sample, it helped me solve my issue.

    Thanks,
    Prava
Back to Top