RadAjaxManagerProxy

3 posts, 0 answers
  1. pramodh
    pramodh avatar
    27 posts
    Member since:
    Oct 2010

    Posted 27 Oct 2010 Link to this post

    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. pramodh
    pramodh avatar
    27 posts
    Member since:
    Oct 2010

    Posted 27 Oct 2010 Link to this post

    hey its  fine.. i resolved it using AjaxRequestDelegate
  3. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 27 Oct 2010 Link to this post

    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
Back to Top