I have a RadWindow that I am launching, I want to show a second RadWindow automatically if the user has opted to use my wizard.
If I use a button to launch the second window it works fine, if I try to do it automatically on Page_Load I get the error 'undefined is null or not an object'.
Here is the code behind:
Here is the javascript:
Here is the RadWindow Object:
If I use a button to launch the second window it works fine, if I try to do it automatically on Page_Load I get the error 'undefined is null or not an object'.
Here is the code behind:
if (!IsPostBack && Profile.UseOrderWizard) |
{ |
ClientScript.RegisterStartupScript(this.GetType(), "NewOrderWizard", "<script type='text/javascript'>ShowOrderWizard();</script>"); |
} |
Here is the javascript:
<script type="text/javascript"> |
function ShowOrderWizard() { |
window.radopen("NewOrderWizard.aspx", "NewOrderWizard"); |
return false; |
} |
</script> |
Here is the RadWindow Object:
<telerik:RadWindowManager ID="rwmNewOrder" runat="server" Behaviors="Reload,Close" Skin="Vista" Modal="true" |
VisibleStatusbar="false" ReloadOnShow="true" ShowContentDuringLoad="false"> |
<Windows> |
<telerik:RadWindow ID="NewOrderWizard" runat="server" Width="700" Height="460" /> |
</Windows> |
</telerik:RadWindowManager> |