How can I solved this Error. Help me..
the 1st Error Image: errormsg1.png
and when I click to Open RadWindow then get same Error Message. and could not open radwindow
2nd Image: errormsg2.png
8 Answers, 1 is accepted
I am not quite sure about the scenario that you are trying. Please make sure that you are getting the RadWindow object correctly while opening the window.
Take a look at the following help article for the detailed information on opening the windows.
Can you elaborate/give code if it doesn't help.
Thanks for reply. but Its could not found "RadWindow" and found error : "Microsoft JScript runtime error: Unable to get value of the property 'setUrl': object is null or undefined" Show the Image in details...
This error means that the oWnd object is null. It can be null for a number of reasons, from a typing mistake to a call to the function before the controls are loaded.
The most probable, though, is that the RadWindow is inside an INaming container and the $find() method cannot get a correct reference by just using this ID. Please try the following syntax:
If this does not help please open a support ticket and send us a simple, fully runnable project that displays this issue so we can debug it locally and pinpoint the cause.
All the best,
the Telerik team
Please Try this:
form id="form1" runat="server">
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/register.Gif"
OnClientClick="openWinContentTemplate(); return false;" />
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
<telerik:RadWindow ID="RadWindow1" runat="server">
<%-- Your Content here--%>
<asp:Label ID="Label1" runat="server" Text="Show the RadWindow in aspx file from Ascx"></asp:Label>
var ShowRadWindow = $telerik.$('[id$="RadWindow1"]').attr("id");
var MyRadWindow = $find(ShowRadWindow);
Aspx File:(Drag and Drop Ascx file to Aspx Page)
<uc1:RadWindowControl ID="RadWindowControl1" runat="server" />
Microsoft JScript runtime error: Unable to get value of the property 'open': object is null or undefined
when trying this code:
It's pretty hard to diagnose the cause for this error from your limited code snippet. When I create a new project, add the code as you've provided, and run it, using Firefox 9.0.1 and IE. there are no errors.
Can you tell me more about what you're trying to accomplish with the RadWindow? Are you trying to provide a login modal window?
With more info, I can assist you.
I was receiving a similar issue and resolved it by reviewing the reference. Try the example below.
In reference to: http://demos.telerik.com/aspnet-classic/Window/Examples/DialogReturnValue/DefaultCS.aspx