Please advise me on:
1.How to make Subject of appointment readonly or disabled, we dont need to edit that.
2.How to customize the tooltip text on tooltip to be shown for each appointment?
regards
Aruna
Hello Aruna,
In the order of asking the questions:
1. You could use an approach like the following:
private void ultraDayView1_BeforeAppointmentEdited(object sender, Infragistics.Win.UltraWinSchedule.CancelableAppointmentEventArgs e) { e.Cancel = true; }
2. Basically what you could do here is similar to the above - you could supress the showing of the tooltip and display your own using 'UltraToolTipManager':
private void ultraDayView1_BeforeAppointmentToolTipDisplayed(object sender, Infragistics.Win.UltraWinSchedule.BeforeAppointmentToolTipDisplayedEventArgs e) { ultraToolTipManager1.SetUltraToolTip(ultraDayView1, new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo("text", Infragistics.Win.ToolTipImage.Info, "title", Infragistics.Win.DefaultableBoolean.True)); ultraToolTipManager1.ShowToolTip(ultraDayView1, new Rectangle(0,0,10,10), Cursor.Position); e.Cancel = true; }
Please feel free to let me know if I misunderstood you or if you have any other questions.