Referencing The Calling Window Functions

2 posts, 0 answers
  1. Seth
    Seth avatar
    90 posts
    Member since:
    Jun 2007

    Posted 23 May 2008 Link to this post

    I am opening a RadWindow from another RadWindow.  The child window is a delete confirmation window.  If the user confirms, I need to update a grid on the parent window's page.  I am doing this on numerous other pages without a problem.  However for some reason it does not work for me on this page.

    Here is my code for opening the window:
    1         function ShowItemTypeIndexDeleteForm(indexAssignmentID, indexID)  
    2         {  
    4             GetRadWindow().BrowserWindow.radopen("ItemTypeIndexDelete.aspx?IndexAssignmentID=" + indexAssignmentID + "&IndexID=" + indexID, "rwIndexDelete");  
    6             return false;   
    7         }  

    Here is my code on the child page for updating the grid on the parent page:
        function CloseAndRebind()  
        function GetRadWindow()  
            var oWindow = null;  
            if (window.radWindow)  
                oWindow = window.radWindow;  
            else if (window.frameElement.radWindow)  
                oWindow = window.frameElement.radWindow;  
            return oWindow;  

    Here is my code for attempting to update the grid on the parent page:
    1         function AjaxRequestMethod(target, arguments)  
    2         {  
    3             var ajaxManager = $find("<%= ramMain.ClientID %>");  
    4             ajaxManager.ajaxRequestWithTarget(target, arguments);  
    5         }  
    6         function refreshIndexesGrid(arg)     
    7         {     
    8             AjaxRequestMethod('<%= rgAssignedIndexes.UniqueID %>', 'Rebind');     
    9         }     

    I am calling the refreshIndexGrid in the code behind using:
            InjectScript.Text = "<script type='text/javascript'>CloseAndRebind('Rebind')</" & "script>"  


  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 26 May 2008 Link to this post

    Hello Seth,

    I was not able to understand what is exactly happening - do you receive a error and if you do, what is it? Or your grid does not get updated but you do not receive errors?

    I suggest to open a new support ticket and send us a sample, fully working project (including a DB) in order to let us help as fast as possible.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top