or
| List<List<object>> rows = new List<List<object>>(); |
| List<object> list1 = new List<object>(); |
| list1.Add("testing1"); |
| list1.Add("testing2"); |
| List<object> list2 = new List<object>(); |
| list2.Add("testing3"); |
| list2.Add("testing=42"); |
| rows.Add(list1); |
| rows.Add(list2); |
| radGrid.DataSource = rows; |
| Capacity | Count |
|---|---|
| 4 | 2 |
| 4 | 2 |
| InfoWind.NavigateUrl = "../Meida/InfoContent.aspx + dataObj.ToString(); |
| InfoWind.VisibleOnPageLoad = true |
where InfoWind is the RadWindow.
In the page that pops up in the window there is a button which closes the window on click calling the following javascript function:
| function WindowClose() |
| { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.radWindow; |
| else |
| if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; |
| oWindow.close(); |
| } |
the code works fine and then the user gets the main window again.
on that screen there is also a HyperLink control which navigates to a classic asp page which I don't have control over.
My problem is on this scenario:
in this case the excpected behavior is to get the main window, but what actually happens is that the main window is displayed and right after that the pop up opens up again...
Here is the RadWindow and RadWindowManager definitions on the main page:
| <telerik:RadWindowManager |
| EnableEmbeddedSkins="False" KeepInScreenBounds="True" DestroyOnClose="True" |
| Behaviors="Close" Skin="ReformaSkin" |
| VisibleStatusbar="False" ID="windowManager" runat="server" Behavior="Close" |
| InitialBehavior="Maximize" |
| Left="" style="display: none;" Top=""> |
| <windows> |
| <telerik:RadWindow ID="InfoWind" runat="server" Behaviors="Close, Maximize" |
| DestroyOnClose="true" EnableEmbeddedSkins="False" |
| InitialBehavior="Close, Maximize" Left="" NavigateUrl="" Skin="ReformaSkin" |
| style="display:none;" Modal="false" Top="" RestrictionZoneID="frnHotz" > |
| </telerik:RadWindow> |
| </windows> |
| </telerik:RadWindowManager> |
| var obj = document.getElementById("Handle_" + dock.get_id()); |
| var output = new Object(); |
| var mytop = 0, myleft = 0; |
| output.width = obj.clientWidth; |
| output.height = obj.clientHeight; |
| while (obj) { |
| mytop += obj.offsetTop; |
| myleft += obj.offsetLeft; |
| obj = obj.offsetParent; |
| } |
| output.left = myleft; |
| output.top = mytop; |
| dock.set_top(output.top); |
| dock.set_left(output.left); |
| dock.set_width(output.width); |
| dock.set_height(output.height); |
Hello How are
you
Thanks
Regards
Rahul Mahajan