I am getting seriously confused (once again)...
My form is quite simple and has a RadAjaxManager called RadAjaxManager1
A javascript method called Initialise() is called on Body / Onload
That method is defined in a script block in the Head section.
At the end of that method, I try to call ajaxRequest() on my AjaxManager but every syntax I try fails in various ways...
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest("ReloadGrid");
In this case ajaxManager is null, hence ajaxRequest does not work
var ajaxManager = $find("<% = RadAjaxManager.GetCurrent(Page).ClientID % >");
This gives me the same null which is not surprising because it's translated to the same on the client side.
My code looks something like
Am I missing something fundamental?
Eric
PS: There is no master page or anything remotely complicated that I can think of... and I have other forms working fine with RadAjaxManager
My form is quite simple and has a RadAjaxManager called RadAjaxManager1
A javascript method called Initialise() is called on Body / Onload
That method is defined in a script block in the Head section.
At the end of that method, I try to call ajaxRequest() on my AjaxManager but every syntax I try fails in various ways...
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest("ReloadGrid");
In this case ajaxManager is null, hence ajaxRequest does not work
var ajaxManager = $find("<% = RadAjaxManager.GetCurrent(Page).ClientID % >");
This gives me the same null which is not surprising because it's translated to the same on the client side.
My code looks something like
| <head runat="server"> |
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script language="javascript"> |
| function GetRadWindow() { |
| ... |
| } |
| function Initialise() { |
| ... |
| //var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>"); |
| var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>"); |
| ajaxManager.ajaxRequest("ReloadGrid"); |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| </head> |
| <body onload="Initialise()"> |
| <form id="form1" runat="server"> |
| <div> |
| <div id="hideMe1" style="height: 0px; width: 0px; position: absolute; top: -100px;"> |
| <telerik:RadWindowManager ID="RadWindowManager1" runat="server" /> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| ... |
Am I missing something fundamental?
Eric
PS: There is no master page or anything remotely complicated that I can think of... and I have other forms working fine with RadAjaxManager