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 VS.net AjaxManager works ControlID="" EventName=""? This would allow the Scheduler to be rendered again, only on applicable events.
Thanks,
Brad
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 VS.net AjaxManager works ControlID="" EventName=""? This would allow the Scheduler to be rendered again, only on applicable events.
Thanks,
Brad
5 Answers, 1 is accepted
0
Accepted
Kevin Babcock
Top achievements
Rank 1
answered on 15 Jul 2008, 04:08 PM
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.
I hope this helps. If you continue have trouble, please let me know.
Regards,
Kevin Babcock
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.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> | |
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> | |
<AjaxSettings> | |
<telerik:AjaxSetting AjaxControlID="RadCalendar1" EventName="OnSelectionChanged"> | |
<UpdatedControls> | |
<telerik:AjaxUpdatedControl ControlID="RadCalendar1" /> | |
<telerik:AjaxUpdatedControl ControlID="RadScheduler1" /> | |
</UpdatedControls> | |
</telerik:AjaxSetting> | |
<telerik:AjaxSetting AjaxControlID="RadCalendar1"> | |
<UpdatedControls> | |
<telerik:AjaxUpdatedControl ControlID="RadCalendar1" /> | |
</UpdatedControls> | |
</telerik:AjaxSetting> | |
</AjaxSettings> | |
</telerik:RadAjaxManager> | |
<telerik:RadCalendar ID="RadCalendar1" runat="server" | |
AutoPostBack="true" | |
OnSelectionChanged="RadCalendar1_SelectionChanged"> | |
</telerik:RadCalendar> | |
<telerik:RadScheduler ID="RadScheduler1" runat="server" | |
DataKeyField="ID" | |
DataSubjectField="Subject" | |
DataStartField="Start" | |
DataEndField="End"> | |
</telerik:RadScheduler> |
I hope this helps. If you continue have trouble, please let me know.
Regards,
Kevin Babcock
0
ataxia1
Top achievements
Rank 1
answered on 15 Jul 2008, 06:18 PM
Perfect. Can't thank you enough.
0
sabarishbabu
Top achievements
Rank 1
answered on 26 Nov 2009, 03:00 PM
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
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
0
Hello sabarishbabu,
I believe you can find them in the online documentation of the product here:
http://www.telerik.com/help/aspnet-ajax/scheduleroverview.html (chapters Server-side and Client-side Programming)
Kind regards,
Sebastian
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.
I believe you can find them in the online documentation of the product here:
http://www.telerik.com/help/aspnet-ajax/scheduleroverview.html (chapters Server-side and Client-side Programming)
Kind regards,
Sebastian
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.
0
Richard
Top achievements
Rank 1
answered on 22 Aug 2011, 03:05 PM
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
Regards Richard