I am in a process of replacing RadAjax from Telerik.WebControlls with RadAjax from new Telerik.Web.UI framework in one of my projects. Very painfull...
Some issues:
-$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content"); trows error when on user control and called from any flavor of RegisterStartupScript,
-Situation: Master Page with the following code
Both, first and second alert give [null] as result instead of [object]. I call function PageAjax from user controll. Why is function not finding propper RadAjax object?
-Situation: Master page with RadAjax and ScriptManager. Blank page using master page with only one custom controll on it. Custom controll with one asp:Panel, RadAjaxProxy, AjaxLoadingPanel, RadMenu (from old Rad Controlls for ASP.NET) and JS function ClickMenuButton, invoking Click event on menu. RadAjaxProxy set to PostBack asp:Panel on Menu item Click event. If I invoke function ClickMenuButton from OnLoad script, it does not show AjaxLoadingPanel. When I do that by clicking on menu btton, it works fine... Mistery for me and another meny hours gone for nothing. Any explanation for this behavior?
Regards,
Alex
Some issues:
-$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content"); trows error when on user control and called from any flavor of RegisterStartupScript,
-Situation: Master Page with the following code
<%@ Master Language="VB" CodeFile="TempMasterPage.master.vb" Inherits="TempMasterPage" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" > |
<head runat="server"> |
<title>Untitled Page</title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true"> |
</telerik:RadAjaxManager> |
MasterPage |
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> |
</asp:contentplaceholder> |
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> |
<script type="text/javascript"> |
function PageAjax() |
{ |
var objAjax1=$find("<%=RadAjaxManager1.ClientID%>"); |
alert(objAjax1); |
var objAjax2=$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>") |
alert(objAjax2); |
} |
</script> |
</telerik:RadScriptBlock> |
</form> |
</body> |
</html> |
-Situation: Master page with RadAjax and ScriptManager. Blank page using master page with only one custom controll on it. Custom controll with one asp:Panel, RadAjaxProxy, AjaxLoadingPanel, RadMenu (from old Rad Controlls for ASP.NET) and JS function ClickMenuButton, invoking Click event on menu. RadAjaxProxy set to PostBack asp:Panel on Menu item Click event. If I invoke function ClickMenuButton from OnLoad script, it does not show AjaxLoadingPanel. When I do that by clicking on menu btton, it works fine... Mistery for me and another meny hours gone for nothing. Any explanation for this behavior?
Regards,
Alex