Bind AjaxManager to Specific Events

6 posts, 1 answers
  1. ataxia1
    ataxia1 avatar
    16 posts
    Member since:
    May 2007

    Posted 15 Jul 2008 Link to this post

    For demonstration-sake, let's say we have two controls, a RadCalendar and a RadScheduler.  In order for them to interact with one-another without a refresh, the AjaxManager binds them together.

    Unless I'm mistaken, this means any action on either must take the time to update both.  For example, navigating months (without selecting) on the calendar, which should be a very fast operation, takes a long time because the RadSheduler is being re-rendered as well, even though no changes have been made.

    Is there a way to bind only specific events together, similar to how the AjaxManager works ControlID="" EventName=""?  This would allow the Scheduler to be rendered again, only on applicable events.


  2. Answer
    Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 15 Jul 2008 Link to this post

    Hello Ataxia1,

    Yes, it is possible to do what you are asking. In the AjaxSetting of your RadAjaxManager, simply set the EventName property to the event you'd like the update to depend on. You can add multiple AjaxSettings to further customize the events and controls that cause updates.

    Here is a simple example of a RadCalendar that updates itself on any postback, and updates itself and the RadScheduler on the OnSelectionChanged event.

    1 <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
    3 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    4     <AjaxSettings> 
    5         <telerik:AjaxSetting AjaxControlID="RadCalendar1" EventName="OnSelectionChanged"
    6             <UpdatedControls> 
    7                 <telerik:AjaxUpdatedControl ControlID="RadCalendar1"  /> 
    8                 <telerik:AjaxUpdatedControl ControlID="RadScheduler1"  /> 
    9             </UpdatedControls> 
    10         </telerik:AjaxSetting> 
    11         <telerik:AjaxSetting AjaxControlID="RadCalendar1"
    12             <UpdatedControls> 
    13                 <telerik:AjaxUpdatedControl ControlID="RadCalendar1"  /> 
    14             </UpdatedControls> 
    15         </telerik:AjaxSetting> 
    16     </AjaxSettings> 
    17 </telerik:RadAjaxManager> 
    19 <telerik:RadCalendar ID="RadCalendar1" runat="server"  
    20     AutoPostBack="true" 
    21     OnSelectionChanged="RadCalendar1_SelectionChanged"
    22 </telerik:RadCalendar> 
    24 <telerik:RadScheduler ID="RadScheduler1" runat="server"  
    25     DataKeyField="ID"  
    26     DataSubjectField="Subject"  
    27     DataStartField="Start"  
    28     DataEndField="End"
    29 </telerik:RadScheduler> 

    I hope this helps. If you continue have trouble, please let me know.

    Kevin Babcock
  3. DevCraft R3 2016 release webinar banner
  4. ataxia1
    ataxia1 avatar
    16 posts
    Member since:
    May 2007

    Posted 15 Jul 2008 Link to this post

    Perfect.  Can't thank you enough.
  5. sabarishbabu
    sabarishbabu avatar
    136 posts
    Member since:
    Apr 2009

    Posted 26 Nov 2009 Link to this post

    Hi Kevin,

    I've been searching for this info for past  many hours. This is great.

    I just need one info, I need to use this with RadScheduler - Where can I find  the list of Eventnames of RadScheduler.

    Many thanks

    - Sabarish

  6. Sebastian
    Sebastian avatar
    9934 posts

    Posted 26 Nov 2009 Link to this post

    Hello sabarishbabu,

    I believe you can find them in the online documentation of the product here: (chapters Server-side and Client-side Programming)

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Richard
    Richard avatar
    11 posts
    Member since:
    Jul 2012

    Posted 22 Aug 2011 Link to this post

    I know this is an old post, but I was wondering if It's possible to do this with the radcalendar and the radscheduler in different usercontrols on the same page?

    Regards Richard
Back to Top
DevCraft R3 2016 release webinar banner