sabarishbabu
Top achievements
Rank 1
sabarishbabu
asked on 15 Sep 2009, 01:53 PM
Hi,
Iam able to create a summary of appointments in the month view by following thesuggestions in this thread
Iwould like this to happen only in the month view. How to stop it from happeningin the other views?
Thanks
Sabrish
3 Answers, 1 is accepted
0
Hello sabarishbabu,
Handle RadTooltipManager's OnclientBeforeShow like this:
Regards,
Peter
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.
Handle RadTooltipManager's OnclientBeforeShow like this:
| function clientBeforeShow(sender, eventArgs) { |
| var scheduler = $find('<%=RadScheduler1.ClientID %>'); |
| if (scheduler.get_selectedView() != Telerik.Web.UI.SchedulerViewType.MonthView) { |
| eventArgs.set_cancel(true); |
| } |
| // * * * |
Regards,
Peter
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
sabarishbabu
Top achievements
Rank 1
answered on 17 Sep 2009, 12:41 AM
Hi Peter,
Okay excellent. Thanks.
There is any other way to handle in server side code?
Thanks
Sabarish
0
Hi sabarishbabu,
Yes, you can handle AppointmentCreated like this:
All the best,
Peter
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.
Yes, you can handle AppointmentCreated like this:
| protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) |
| { |
| if (RadScheduler1.SelectedView == SchedulerViewType.MonthView) |
| { |
| if (e.Appointment.Visible && !IsAppointmentRegisteredForTooltip(e.Appointment)) |
| { |
| string id; |
| if (e.Appointment.RecurrenceState != RecurrenceState.Occurrence) |
| { |
| id = e.Appointment.ID.ToString(); |
| } |
| else |
| { |
| id = e.Appointment.RecurrenceParentID.ToString(); |
| } |
| foreach (string domElementID in e.Appointment.DomElements) |
| { |
| RadToolTipManager1.TargetControls.Add(domElementID, id, true); |
| } |
| } |
| } |
| else |
| { |
| e.Appointment.ToolTip = String.Empty; |
| } |
| } |
All the best,
Peter
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.