This is a migrated thread and some comments may be shown as answers.

findcontrol method contains null reference

1 Answer 77 Views
Window
This is a migrated thread and some comments may be shown as answers.
cognos s
Top achievements
Rank 1
cognos s asked on 03 Oct 2009, 02:54 PM
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?




1 Answer, 1 is accepted

Sort by
0
cognos s
Top achievements
Rank 1
answered on 03 Oct 2009, 06:00 PM
I found the solution.

var oWnd = $find("<%= RadWindow1.ClientID %>");
          oWnd.show();
Tags
Window
Asked by
cognos s
Top achievements
Rank 1
Answers by
cognos s
Top achievements
Rank 1
Share this question
or