Hi,
I am having some issues with the window control. Let me try to explain how I am trying to use this.
I have a search results page that brings back a number of thumbnails of videos. I then add an onClick Attribute to each hyperlink of the thumbnail like follows:
| lbnTest.Attributes.Add("onClick", "ShowWindow('player.aspx?url=http://www.somesite.com/file.wmv&mn=file_name');") |
Then I have the following JS on the search results page, as well as the code for the RadWindowManager.
| <script> |
| function ShowWindow(url) |
| { |
| var oManager = GetRadWindowManager(); |
| |
| var oWin = oManager.Open(url, 'rwVideoWindow'); |
| oWin.Width = 355; |
| oWin.Height = 335; |
| oWin.Center(); |
| return false; |
| } |
| </script> |
| |
| <radW:RadWindowManager ID="rwmMain" runat="server"> |
| <Windows> |
| <radW:RadWindow ID="rwVideoWindow" runat="server" Width="355" Height="335" Modal="True" Skin="Default" SkinsPath="~/RadControls/Window/Skins" DestroyOnClose="true" /> |
| </Windows> |
| </radW:RadWindowManager> |
Now the issue. It seems on first click of any thumbnail the new window gets centered fine, it is modal and when I close it is destroyed (if DestroyOnClose isn't set to true, you can still here the video being played)
However, each next click it doesn't seem to honor the code in the RadWindowManager - size isn't right, it's not modal etc. It does seem to pick up the couple of JS settings like Center, Width and Height. How do I set other properties. I tried something like:
oWin.DestroyOnClose = true;
But that didn't help. Any suggestions on how to fix this would be appreciated.