Hi all,
My scenario is Iike that: Main page let's say A has a button and after it's clicked a rad window is opened. Let's say this page B. In page B after a button clicked, a new page called C is opened. My problem was at first C page was surrounded by page B. I could not get out of boundaries of the page B.
After i read the document on http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html i solved my problem.
But here is another issue. When i close page C, i could not handle OnClientClose event on page B. I tried many things but i could not success.
Some codes from page B :
GetRadWindow().get_windowManager(); connects RadWindowManager of page A not B so this RadWindowManager1
is useless right ? Otherwise i will again hangout to the boundaries of B. Ok add_close method can not be
bind to a radwindowmanager right ? What should i do to be aware Page C is closed or not. (My aim is to refresh page B on Page C close)
Thank you.
My scenario is Iike that: Main page let's say A has a button and after it's clicked a rad window is opened. Let's say this page B. In page B after a button clicked, a new page called C is opened. My problem was at first C page was surrounded by page B. I could not get out of boundaries of the page B.
After i read the document on http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html i solved my problem.
But here is another issue. When i close page C, i could not handle OnClientClose event on page B. I tried many things but i could not success.
Some codes from page B :
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript">function OpenDefectStockItemPanel() { var getRecordId = document.getElementById("<%= getRecordId.ClientID %>").value; var url = "DefectStockItemPanel.aspx?ID=" + getRecordId; var oBrowserWnd = GetRadWindow().get_windowManager(); oBrowserWnd._width = 1100; oBrowserWnd._height = 600; setTimeout(function () { oBrowserWnd.open("DefectStockItemPanel.aspx?url=" + encodeURIComponent(url),
"asda"); }, 0); return false; } </script> </telerik:RadCodeBlock> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"> <Windows> <telerik:RadWindow ID="DefectStockDialog2" runat="server" Title="Hasar-Ürün Yönetimi" Width="400px" Height="600" ReloadOnShow="true" OnClientClose="RadWindowOnClientClose" ShowContentDuringLoad="false" Modal="true" /> </Windows> </telerik:RadWindowManager>GetRadWindow().get_windowManager(); connects RadWindowManager of page A not B so this RadWindowManager1
is useless right ? Otherwise i will again hangout to the boundaries of B. Ok add_close method can not be
bind to a radwindowmanager right ? What should i do to be aware Page C is closed or not. (My aim is to refresh page B on Page C close)
Thank you.