I am doing some testing with the 3rd party control WebScheduler by ComponentGo. I have found that when I have the Prometheus version of RadAjaxManager on my page along with the ComponentGo Web Scheduler that if I make a client-side AjaxRequest that in my OnResponseEnd function the args.EventArgument and args.EventTarget values are empty strings. If I remove the WebScheduler component from the page it behaves as expected. Also I tested with RadAjax 1.7.0.0 and it works fine. I know this involves a 3rd party control, but I wanted to see if you all had any ideas? Below is the markup that I am using for both the 1.7.0.0 and Prometheus versions.
RadAjax 1.7.0.0
ASPX
C#
Ajax "Prometheus"
ASPX
C#
I am using version Demo version 2.0.9 of the ComponentGo control which can be downloaded here.
Additionally, I can provide my example project via email if you would like.
Thanks,
Paige
RadAjax 1.7.0.0
ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadAjax.aspx.cs" Inherits="RadAjax" %> |
<!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>RadAjax 2007 Q1</title> |
<script language="javascript" type="text/javascript"> |
function InitiateAjaxRequest(arguments) |
{ |
<%=RadAjaxManager1.ClientID %>.AjaxRequest(arguments); |
} |
function ajaxOnResponseEnd(sender, args) |
{ |
var message; |
message = "EventTarget: " + args.EventTarget + "\n\n"; |
message += "EventArgument: " + args.EventArgument + "\n"; |
alert(message); |
} |
</script></head> |
<body> |
<form id="form1" runat="server"> |
<asp:ScriptManager ID="ScriptManager1" runat="server" /> |
<RadAjax:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="true" OnAjaxRequest="Telerik_AjaxRequest" ClientEvents-OnResponseEnd="ajaxOnResponseEnd"> |
<AjaxSettings> |
<RadAjax:AjaxSetting AjaxControlID="RadAjaxManager1"> |
<UpdatedControls> |
<RadAjax:AjaxUpdatedControl ControlID="lblTime" /> |
</UpdatedControls> |
</RadAjax:AjaxSetting> |
</AjaxSettings> |
</RadAjax:RadAjaxManager> |
<div> |
<a href="javascript:InitiateAjaxRequest('UpdateTime,1');">Update Time</a> |
<br /> |
<asp:Label ID="lblTime" runat="server" /> |
<br /> |
<ComponentGo:Scheduler ID="Sch" runat="server" BackColor="WhiteSmoke" Caption="Schedule Book" |
Font-Names="Verdana" Font-Size="Small" FreeDateColor="LightCoral" FreeTimeColor="White" |
Height="200px" HorizontalHeaderLine="1px Black Solid" HorizontalLine="1px Silver Solid" |
ObjectID="SchObj" VerticalLine0="2px Silver Solid" VerticalLine1="1px Silver Solid" |
VerticalResourceLine="1px Silver Solid" Width="100%" NumberOfCols="47" TimeResolution="HalfHour" |
FirstDateTime="2007-04-12 4:00am" CellWidth="20px" |
SaveStateData="All" BehaviorOptions="AllowOverlapItems, Default" |
WorkHourBegin="12:00" WorkHourEnd="12:00" ViewOptions="ShowCaption, Default"> |
<BodyStyle BackColor="#C0C0C0" ContextMenuID="BodyMenu"> |
</BodyStyle> |
<TimeLineStyle Font-Size="X-Small" ResourceImage="Gray"> |
</TimeLineStyle> |
<CaptionStyle HorizontalAlign="Center" ResourceImage="Navy"> |
</CaptionStyle> |
<ResourceListStyle BackColor="Snow" ContextMenuID="ResourcesMenu"> |
</ResourceListStyle> |
<ResourceHeaderStyle BackColor="#D5E1FF"> |
</ResourceHeaderStyle> |
<Columns> |
<ComponentGo:ResourceColumn ShowTree="True" Text="Name"> |
</ComponentGo:ResourceColumn> |
<ComponentGo:ResourceColumn DataIndex="1" Text="Description" Width="500px"> |
</ComponentGo:ResourceColumn> |
</Columns> |
<DefaultItemStyle> |
<EventDblClick ClientScript="editItem(SchObj.get_ClickedItem().get_ItemID())" /> |
</DefaultItemStyle> |
</ComponentGo:Scheduler> |
</div> |
</form> |
</body> |
</html> |
C#
using System; |
using System.Data; |
using System.Configuration; |
using System.Collections; |
using System.Web; |
using System.Web.Security; |
using System.Web.UI; |
using System.Web.UI.WebControls; |
using System.Web.UI.WebControls.WebParts; |
using System.Web.UI.HtmlControls; |
public partial class RadAjax : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
if (!IsPostBack) |
UpdateTime(); |
} |
protected void Telerik_AjaxRequest(object sender, Telerik.WebControls.AjaxRequestEventArgs e) |
{ |
string[] args = e.Argument.Split(','); |
if (string.Compare(args[0], "updatetime", true) == 0) |
UpdateTime(); |
} |
private void UpdateTime() |
{ |
lblTime.Text = DateTime.Now.ToString(); |
} |
} |
Ajax "Prometheus"
ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AjaxPrometheus.aspx.cs" Inherits="AjaxPrometheus" %> |
<!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 id="Head1" runat="server"> |
<title>Ajax "Prometheus"</title> |
<script language="javascript" type="text/javascript"> |
function InitiateAjaxRequest(arguments) |
{ |
<%=RadAjaxManager1.ClientID %>.AjaxRequest(arguments); |
} |
function ajaxOnResponseEnd(sender, args) |
{ |
var message; |
message = "EventTarget: " + args.EventTarget + "\n\n"; |
message += "EventArgument: " + args.EventArgument + "\n"; |
alert(message); |
} |
</script></head> |
<body> |
<form id="form1" runat="server"> |
<asp:ScriptManager ID="ScriptManager1" runat="server" /> |
<Telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="Telerik_AjaxRequest" ClientEvents-OnResponseEnd="ajaxOnResponseEnd"> |
<AjaxSettings> |
<Telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> |
<UpdatedControls> |
<Telerik:AjaxUpdatedControl ControlID="lblTime" /> |
</UpdatedControls> |
</Telerik:AjaxSetting> |
</AjaxSettings> |
</Telerik:RadAjaxManager> |
<div> |
<a href="javascript:InitiateAjaxRequest('UpdateTime,1');">Update Time</a> |
<br /> |
<asp:Label ID="lblTime" runat="server" /> |
<br /> |
<ComponentGo:Scheduler ID="Sch" runat="server" BackColor="WhiteSmoke" Caption="Schedule Book" |
Font-Names="Verdana" Font-Size="Small" FreeDateColor="LightCoral" FreeTimeColor="White" |
Height="200px" HorizontalHeaderLine="1px Black Solid" HorizontalLine="1px Silver Solid" |
ObjectID="SchObj" VerticalLine0="2px Silver Solid" VerticalLine1="1px Silver Solid" |
VerticalResourceLine="1px Silver Solid" Width="100%" NumberOfCols="47" TimeResolution="HalfHour" |
FirstDateTime="2007-04-12 4:00am" CellWidth="20px" |
SaveStateData="All" BehaviorOptions="AllowOverlapItems, Default" |
WorkHourBegin="12:00" WorkHourEnd="12:00" ViewOptions="ShowCaption, Default"> |
<BodyStyle BackColor="#C0C0C0" ContextMenuID="BodyMenu"> |
</BodyStyle> |
<TimeLineStyle Font-Size="X-Small" ResourceImage="Gray"> |
</TimeLineStyle> |
<CaptionStyle HorizontalAlign="Center" ResourceImage="Navy"> |
</CaptionStyle> |
<ResourceListStyle BackColor="Snow" ContextMenuID="ResourcesMenu"> |
</ResourceListStyle> |
<ResourceHeaderStyle BackColor="#D5E1FF"> |
</ResourceHeaderStyle> |
<Columns> |
<ComponentGo:ResourceColumn ShowTree="True" Text="Name"> |
</ComponentGo:ResourceColumn> |
<ComponentGo:ResourceColumn DataIndex="1" Text="Description" Width="500px"> |
</ComponentGo:ResourceColumn> |
</Columns> |
<DefaultItemStyle> |
<EventDblClick ClientScript="editItem(SchObj.get_ClickedItem().get_ItemID())" /> |
</DefaultItemStyle> |
</ComponentGo:Scheduler> |
</div> |
</form> |
</body> |
</html> |
C#
using System; |
using System.Data; |
using System.Configuration; |
using System.Collections; |
using System.Web; |
using System.Web.Security; |
using System.Web.UI; |
using System.Web.UI.WebControls; |
using System.Web.UI.WebControls.WebParts; |
using System.Web.UI.HtmlControls; |
public partial class AjaxPrometheus : System.Web.UI.Page |
{ |
protected void Page_Load(object sender, EventArgs e) |
{ |
if (!IsPostBack) |
UpdateTime(); |
} |
protected void Telerik_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) |
{ |
string[] args = e.Argument.Split(','); |
if (string.Compare(args[0], "updatetime", true) == 0) |
UpdateTime(); |
} |
private void UpdateTime() |
{ |
lblTime.Text = DateTime.Now.ToString(); |
} |
} |
I am using version Demo version 2.0.9 of the ComponentGo control which can be downloaded here.
Additionally, I can provide my example project via email if you would like.
Thanks,
Paige