Im getting this error, "Microsoft JScript runtime error: 'undefined' is null or not an object", when trying to open a rad window using the radopen function , it seems as if the radWindowManager cannot be found, because in the following function _1d is undefined after it has passed the second line, this function is created automatically.
window.radopen=
function(url,_1c){
var
_1d=GetRadWindowManager();
return
_1d.open(url,_1c);
};
i need to open the window after the code behind is executed, this is the code im using to open the window.
aspx page:
<
telerik:RadWindowManager ID="RadWindowManager1" runat="server"
Behavior="Default" InitialBehavior="None" Left="" style="display: none;" Top="">
<Windows>
<telerik:RadWindow ID="radwUploadFiles" runat="server"
NavigateUrl="~/Bursaries/UploadConfig.aspx" Title="Upload File(s)"
VisibleStatusbar="false" Width="840px" Height="620px" ReloadOnShow="true" Skin="Web20">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<script type="text/javascript">
function ShowUploader()
{
window.radopen(
null, "radwUploadFiles");
}
code behind(in the image button click event):
ImageButton
imgbtn = sender as ImageButton;
imgbtn.Attributes.Add(
"OnLoad", "ShowUploader();return false;");
any help would be appreciated, thanks.
Regards