Unable to open radwindow using radopen() in javascript

3 posts, 0 answers
  1. Akki
    Akki avatar
    79 posts
    Member since:
    Nov 2011

    Posted 15 Nov 2011 Link to this post

              
    Hi ,
    I want to open radwindow on click of link button with help of radopen() javascript method.. i am getting error
    "Microsoft JScript runtime error: Object doesn't support this property or method" how can i call radwindow to open with radopen() method.
    Code :
    ------
           <asp:LinkButton ID="lnk_ForgotPassqord" runat="server" OnClientClick="OpenRadWin(); return false;"
                  Style="font-size: 11px; padding-left: 20px;">Forgot password?</asp:LinkButton>

                <telerik:RadWindowManager ID="radWindowManager" runat="server">
                 <Windows>
                     <telerik:RadWindow ID="radWindow" Skin="Vista" runat="server" Title="User List Dialog"
                        Height="500px" Width="300px" Left="150px" Modal="true">
                    </telerik:RadWindow>
                    </Windows>
                </telerik:RadWindowManager>

    Javascript code :
    ----------------------
     <script language="javascript" type="text/javascript">
            function OpenRadWin() {
                debugger;
                radopen(null, "radWindow");
            }
        </script>

    Regards,
    Akki
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Nov 2011 Link to this post

    Hello Akki,

    Here is the sample code that i tried which worked as expected.
    JS:
    function OpenRadWin()
    {
      var oWnd = $find("<%= radWindow.ClientID %>");
       oWnd.radopen(null, "radWindow");
    }

    Also check the following help documentation.
    Opening Windows

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vivek
    Vivek avatar
    4 posts
    Member since:
    Aug 2014

    Posted 17 Jun 2015 in reply to Shinu Link to this post

    I can open radwindow successfully in ASP.NET. However when I try in classic ASP it does not work. Is there any sample code for classic ASP please?
Back to Top