Hi, i try to update my Telerik DLL from "2009.1.402.20" to "2010.1.519.35" and having few issues, one of them is i try to open a RadWindow from my PageLoad event....
Everything is fine when i am open the RadWindow from a button but as soon as i try to open it automaticly from the page load event throught the RegisterStartupScript method i have an JS error " 'undefined' is null or not an object" see attachment for details
- Everything was fine with the previous version of the control
- Theres nothing in the code that could impact the functionnality because i use a brand new peoject with nothing else on it
- Doesn't matter if i am using the Window Script Manager or the RadScriptManager
- I suspect something in the control beacause in the JS error (see attachment) said error on line 3193... this it's weird because my html page result only have 148 lines....
To test this I have created a blank new WebProject and add the following code
Here's part of my CodeBehind Code :
protected void Page_Load(object sender, EventArgs e)
{
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "OpenDataSet", "ShowLanInsertForm();", true);
}
Here's part of my my HTML code :
<script type="text/javascript">
function ShowLanInsertForm()
{
radopen(
"http://www.telerik.com", "RadWindow1");
}
</script>
<
telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<
button onclick="ShowLanInsertForm(); return false;">open</button>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
<telerik:RadWindow
id="RadWindow1"
runat="server"
showcontentduringload="false"
width="400px"
height="400px"
title="Telerik RadWindow"
behaviors="Default">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>