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

Referencing The Calling Window Functions

1 Answer 86 Views
Window
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 23 May 2008, 05:59 PM
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:
        function ShowItemTypeIndexDeleteForm(indexAssignmentID, indexID)  
        {  
 
            GetRadWindow().BrowserWindow.radopen("ItemTypeIndexDelete.aspx?IndexAssignmentID=" + indexAssignmentID + "&IndexID=" + indexID, "rwIndexDelete");  
     
            return false;   
        }  
 

Here is my code on the child page for updating the grid on the parent page:
    function CloseAndRebind()  
    {  
        GetRadWindow().Close();  
        GetRadWindow().BrowserWindow.refreshIndexesGrid('Rebind');  
    }  
    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:
        function AjaxRequestMethod(target, arguments)  
        {  
            var ajaxManager = $find("<%= ramMain.ClientID %>");  
            ajaxManager.ajaxRequestWithTarget(target, arguments);  
        }  
        function refreshIndexesGrid(arg)     
        {     
            AjaxRequestMethod('<%= rgAssignedIndexes.UniqueID %>', 'Rebind');     
        }     
 

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

Thanks.

Seth

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 26 May 2008, 02:11 PM
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,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Seth
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or