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

Close window and refresh parent page

1 Answer 160 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tech
Top achievements
Rank 1
Tech asked on 24 Sep 2008, 12:43 AM
Hi.

I have RadWindow and have close button inside it.
I want to close the radwindow when i click on close button, and same time, refresh the parent page.

I'm using this code..
parent page:
<script type="text/javascript">
                function ShowEditForm(id, rowIndex,tabID) {
                    var grid = $find("<%= RadGrid1.ClientID %>");

                    var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                    grid.get_masterTableView().selectItem(rowControl, true);

                    var oWnd = window.radopen("EditTable.aspx?autoRowID=" + id + "&tabID=" + tabID, "UserListDialog");
                    oWnd.add_close(OnClientClose);
                    
                }
function OnClientclose(oWnd) {
                    
                }



1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 24 Sep 2008, 11:56 AM
Hi Tech,

You can try with

function OnClientclose(oWnd)
{
    document.location.href = document.location.href;
}



Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Tech
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or