Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
UltraWinSchedule
posted

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 

 

  • 71886
    Offline posted

    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.