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
420
UltraTimelineView - Appointment text trimming
posted

Hi,

I have a timeline view with appointments that display start/end times and subject. When there is insufficient room to display both the times and the subject the start/end times are not shown. This is excellent!

However, when there is insufficient room to display the subject by itself, the subject gets trimmed. I would like the appointment subject to display only when there is enough room to display it completely, but there is no text trimming option to do this.

Is there another way I can achieve the desired result?

Regards, Jim.

Parents
  • 48586
    posted
    Normal 0 false false false EN-US ZH-TW X-NONE

    Hello,

     

    Appointment object has a property Appearance.TextTrimming, which allows you to choose how the text will trimmed, also please look at ultraTimelineView1.AppointmentDisplaySettings. Using this you could determine which component should be displayed on appointments. Like you could choose to display or not subject for example:

    ultraTimelineView1.AppointmentDisplaySettings.DisplaySubject = Infragistics.Win.DefaultableBoolean.True;

     

    The settings that you set for AppointmentDisplaySettings will be applied for all appointments, so if you want to set different display text to each appointment you should use creation filter. What I mean is: one appointment to display start/end date, other to display subject and etc. then you should use creation filter to get AppointmentTimeUIElement and set it Text property to desired text that you want to be displayed on this appointment, based on some criteria (you could get Appointment object associated to AppointmentTimeUIElement, you could use AppointmentTimeUIElement.Appoitment).

    In the following  link you could find more information about the CreationFilter:

    http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/Win_Creation_Filter.html

     

    Let me know if you have any further questions.

     

Reply Children