I am trying to get a reference of a RadWindow but the $find returns null on form load. My radwindow is like this:
< telerik:RadWindow ID="rwinLogOn" Title="asset Toolbox - LogOn" runat="server"
NavigateUrl="LogOn.aspx" Behavior="None" IconUrl="img/userGroup.png"
VisibleStatusbar="False" DestroyOnClose="True"
OnClientClose="onClientClose" Modal="False" Skin="Black" Height="160"
Width="230" AutoSize="True" style="display: none">
</telerik:RadWindow>
It is a logon window and must be opened at the start of the application. When the first form is opened. I am using jQuery and I have a ready event like this:
$(document).ready(
function() {
showLogOn();
});
function showLogOn() {
var oWnd = $find("rwinLogOn");
oWnd.show();
}
The oWnd variable in showLogOn is allways returning "null" at the form load. To check if the problem was really because of the form load event I put a button in the main form like this:
<input id="btnShow" type="button" value="show window" onclick="showLogOn(); return false;" />
When the form is loaded normally and I press the button above the RadWindow is showned without any problems. So the problem is really because the RadWidown is not avaiable at the jQuery ready event.
I tried to call showLogOn() in the Body onLoad and OnInit events and it did not worked. The curious thing is that all other html tags can be accessed normally in the jQuery ready event. But the RadWindow is only avaiable after the page is displayied.
I need to know which event I must drive to access the radWindow after the form is completelly loaded.
Thanks in advance.