I tried it already . Also saw the demo link also sent in the reply in the demo Grid is refreshing on closing window,. But we need to refresh Grid without closing the window.
Parent window is Perent.ascx which is having the java script PopUpFutureObligationCallBack (){} and window manger to open popup page . On Child.aspx page there is a Button SaveAndAddNew when we click on button the data will submit and Grid existing in Perent.ascx should be refresh without closing
The Popup child.aspx
In this case I tried to call the java script on parent page but I am unable to do that.
I tried the code
Script in perent window PopUpFutureObligationCallBack(){}
Protected Sub SaveAndAddNew _Click(ByVal sender As Object, ByVal e As EventArgs) Handles SaveAndAddNew.Click
Dim refreshopener As String
refreshopener = "<script>window.opener.PopUpFutureObligationCallBack();</script>"
RadScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "PostBackParent", refreshopener True)
Protected Sub SaveAndAddNew _Click(ByVal sender As Object, ByVal e As EventArgs) Handles SaveAndAddNew.Click
Condition 1. RadScriptManager.RegisterClientScriptBlock(Pages, Pages.GetType(), "PostBackParent", refreshopener ,True)
Condition 2. ClientScript.RegisterStartupScript(Page.GetType(), "mykey", refreshopener, True)
Condition 3. RadScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "PostBackParent", refreshopener True)
End Sub
Only condition 3 is working so I can call only the current window script unable to call the script.
Pls look into the scenario and suggest solution....