findcontrol method contains null reference

2 posts, 0 answers
  1. cognos s
    cognos s avatar
    35 posts
    Member since:
    Oct 2009

    Posted 03 Oct 2009 Link to this post

    I am trying to use radwindow in the content page of .net web application. I am using this piece of code as suggested in documentation.

     function ShowExisting3() {
            var oWnd = $find("RadWindow1");
            oWnd.show();
        }

     <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
               <Windows>
                   <telerik:RadWindow
                       ID="RadWindow1"
                       runat="server"
                       NavigateUrl="http://www.google.com">
                   </telerik:RadWindow>             
               </Windows>
     </telerik:RadWindowManager>
       
            <button onclick="ShowExisting3();return false;"  style="width: 190px">
               Show window (using show)</button>


    oWnd contrains null value. any suggestions how to get reference to radwindow?




  2. cognos s
    cognos s avatar
    35 posts
    Member since:
    Oct 2009

    Posted 03 Oct 2009 Link to this post

    I found the solution.

    var oWnd = $find("<%= RadWindow1.ClientID %>");
              oWnd.show();
Back to Top