I'm using the below function to show a window, but the code for the pages that I'm showing is being executed twice
once with seturl and once with show.
What am I doing wrong to cause this?
If i remove the oWnd.Show() my window opens with the URL page being executed, but you can't close the window.
function OpenFeatureWindow(URL) { |
try { |
var oWnd = $find("<%= Features.ClientID %>"); |
oWnd.set_height(document.documentElement.clientHeight - 75); |
oWnd.set_width(document.documentElement.clientWidth - 50); |
oWnd.center(); |
oWnd.Show(); } catch (e) { |
alert(e); |
} |
} |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behavior="Default" |
InitialBehavior="None" EnableViewState="true" DestroyOnClose="true"> |
<Windows> |
<telerik:RadWindow runat="server" Behavior="Close" InitialBehavior="None" Left="" |
Top="" ID="Features" Behaviors="Close, Resize, Maximize, Move" Height="400" Modal="True" |
VisibleStatusbar="false" Width="1000px" DestroyOnClose="false" ShowContentDuringLoad="true" |
ReloadOnShow="True" OnClientClose="ClearWindow" Animation="None" NavigateUrl=""> |
</telerik:RadWindow> |
</Windows> |
</telerik:RadWindowManager> |
Modified approach, which seems to work very well, however, I do not want the statusbar to be visible, not finding a way to hide it totally, I set it to "" as shown, but this causes the page title to be cleared as well, when the page title is set in code behind on the URL pages, me.title = "xyz", xyz does not show in the title.
I'd really like to use this approach, but I don't want to see the statusbar at all, and I don't want to loose my titles.
Suggestions
function OpenFeatureWindow(URL) { |
try { |
var oWnd = radopen(URL, null); |
oWnd.set_height(document.documentElement.clientHeight - 75); |
oWnd.set_width(document.documentElement.clientWidth - 50); |
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Move) |
oWnd.center(); |
oWnd.set_status = "" |
} catch (e) { |
alert(e); |
} |
} |