I need to disable or hide the day text on an Ultradayview control. I have tried using appearances, and a creation filter to hide this text however this has not worked. What is the best way to go about disabling this text?
Hello Tristan,
You could take a look at the 'DayTextFormat' property of the control:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/Infragistics4.Win.UltraWinSchedule.v12.2~Infragistics.Win.UltraWinSchedule.UltraDayView~DayTextFormat.html.
Please do not hesitate to contact me if you need any additional assistance.
I have tried this property, however I need to remove the date so the header where it is displayed is empty. Setting ultraDayView.DayTextFormat = ""; would throw an exception and not work.
My bad. Thank you for your patience!
You could try with the following class:
class CF : IUIElementCreationFilter { public void AfterCreateChildElements(UIElement parent) { if (parent is DayHeaderUIElement) parent.Rect = new Rectangle(); } public bool BeforeCreateChildElements(UIElement parent) { return false; } }
Please feel free to let me know if a question about our tool set comes up on your mind.
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.