This is a migrated thread and some comments may be shown as answers.

RadAjaxManagerProxy

2 Answers 48 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
pramodh
Top achievements
Rank 1
pramodh asked on 27 Oct 2010, 08:20 AM
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

  

2 Answers, 1 is accepted

Sort by
0
pramodh
Top achievements
Rank 1
answered on 27 Oct 2010, 11:04 AM
hey its  fine.. i resolved it using AjaxRequestDelegate
0
Maria Ilieva
Telerik team
answered on 27 Oct 2010, 12:46 PM
Hi,

We are glad you have mentioned to fix the problem on your side.
Do not hesitate to contact us back if further assistance is needed.

Regards,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
pramodh
Top achievements
Rank 1
Answers by
pramodh
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or