Hi all,
I have such code:
And all is working Ok, whats weird that without Line 11 (SetUrl) when I run this code I get js error:
I have such code:
<script type="text/javascript"> | |
<%= navBar.Toolbar.ClientID %>.attachEvent("OnClientClick","nav_click"); | |
function OpenWindow (name){ | |
var oManager = GetRadWindowManager(); | |
var oMailWnd = oManager.GetWindowByName(name); | |
if (oMailWnd) | |
{ | |
oMailWnd.SetUrl(oMailWnd.GetUrl()); | |
oMailWnd.SetActive(true); | |
oMailWnd.Show(); | |
} | |
else{ | |
alert(name); | |
} | |
} | |
function nav_click(sender, e) | |
{ | |
if (sender.CommandName=="NewSheet"){ | |
OpenWindow('wndNewSheet'); | |
return false; | |
} | |
} | |
function wndNewSheet_Close(radWindow) | |
{ | |
} | |
</script> | |
<telerik:RadWindowManager ID="wndMgr" runat="server" ShowContentDuringLoad="false"> | |
<Windows> | |
<telerik:RadWindow ID="wndNewSheet" NavigateUrl="~/DesktopModules/Maxon/Costs/NewSheet.aspx" OnClientClose="wndNewSheet_Close" Width="400px" Height="300px" runat="server" VisibleStatusbar="false" /> | |
</Windows> | |
</telerik:RadWindowManager> | |
And all is working Ok, whats weird that without Line 11 (SetUrl) when I run this code I get js error:
a7 has no properties
var _a8=parseInt(_a7.style.zIndex);
at
A bit weird :-) at
998},setActive:function(_a6){
999var _a7=this._popupElement;
1000if(!_a6){
1001Sys.UI.DomElement.addCssClass(_a7,"inactivewindow");
1002}else{
1003var _a8=parseInt(_a7.style.zIndex);