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
235
Modifying TimeSlotDescriptorArea
posted

I  would like to write individual text into the TimeSlotDescriptorArea instead of the time values.

How does it work to show a caption for different timeslots?

Parents
No Data
Reply
  • 69832
    Offline posted

    You could probably accomplish this using the IUIElementDrawFilter interface. The visual appearance of the TimeSlot descriptor is realized through the Infragistics.Win.UltraWInSchedule.DayView.TimeSlotDescriptorUIElement. You could use the IUIElementCreationFilter interface to remove the HourUIElement and MinuteUIElement elements that appear by default (as immediate children of the TimeSlotDescriptorUIElement), and add a TextUIElement instead, with the Text property of the TextUIElement set to the caption you want to display. One thing to note is that the TimeSlotDescriptorUIElement exposes a property, SelectableItem, which will return the first TimeSlot associated with that descriptor; I mention this because this is the only way to get an association between the descriptor and a TimeSlot, and you might need this information depending what information you need for your caption.

Children