pls help...
I have a web page with RadAjaxManager as below
<telerik:RadAjaxManager ID="radAjaxManager" runat="server"
EnableViewState="false" EnableAJAX="true" EnableEmbeddedScripts="true"
UpdatePanelsRenderMode="Block" />
I have user control in this page which needs another RadAjaxManager for which i use RadAjaxManagerProxy as below
<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadCalendar1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadCalendar1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
i want to register an event for radAjaxManager present in web page as below
RadAjaxManager AjaxManager = (RadAjaxManager)this.Parent.FindControl("radAjaxManager");
AjaxManager.ClientEvents.OnRequestStart = "RadAjaxManager1_AjaxRequest";
my event is like below and i want this event to be present in .cs file of user control..
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "focusSelectedDate" && RadCalendar1.SelectedDates.Count > 0)
{
RadCalendar1.FocusedDate = RadCalendar1.SelectedDates[0].Date;
}
else if (e.Argument == "focusSelectedDate")
{
RadCalendar1.FocusedDate = DateTime.Now;
}
}
but still it is not able to find RadAjaxManager1_AjaxRequest event.. am i doing any thing wrong?
-Pramodh
I have a web page with RadAjaxManager as below
<telerik:RadAjaxManager ID="radAjaxManager" runat="server"
EnableViewState="false" EnableAJAX="true" EnableEmbeddedScripts="true"
UpdatePanelsRenderMode="Block" />
I have user control in this page which needs another RadAjaxManager for which i use RadAjaxManagerProxy as below
<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadCalendar1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadCalendar1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
i want to register an event for radAjaxManager present in web page as below
RadAjaxManager AjaxManager = (RadAjaxManager)this.Parent.FindControl("radAjaxManager");
AjaxManager.ClientEvents.OnRequestStart = "RadAjaxManager1_AjaxRequest";
my event is like below and i want this event to be present in .cs file of user control..
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "focusSelectedDate" && RadCalendar1.SelectedDates.Count > 0)
{
RadCalendar1.FocusedDate = RadCalendar1.SelectedDates[0].Date;
}
else if (e.Argument == "focusSelectedDate")
{
RadCalendar1.FocusedDate = DateTime.Now;
}
}
but still it is not able to find RadAjaxManager1_AjaxRequest event.. am i doing any thing wrong?
-Pramodh