Hi,
I am using Infragistics 12.2 and working specifically with the UltraMonthSingleView control. My users would like to display readonly (or locked) Notes with multline Descriptions. There can be at most one of these per day.
Is there a way to display multiline descriptions on the corresponding Day portion (without having to force the user to hover over the note) of the Calendar? I've tried DrawFilters; owever, I can't seem to get this to work. Ian change the UltraNoteUIElement's rectangle but that only seems to affect the editor (not the Note's display area in the Day).
After poking around, I found that there is a "friend" property (something like "IsDescriptionMultiline") which is set appropriately; however, even though it is returning True for multiline descriptions, it does not appear to affect the way the Description is displayed in the Day's "cell". Is there a way to do this? If not, is there a way to force ellipses if the text for the Description is bigger (Either the text's width or multiple lines) then what is visible in the given Note area on the Day's cell?
Thanks,
Jason
Milko,
Thanks! That works great. I'm messing with some code to handle "multiline" notes but what you have in the sample code is a great start.
Thanks again,
Hello Jason,
Thank you for posting in out forum.
You may solve this task by implementing Infragistics IUIElementCreationFilter interface. In your custom implementation you can set the WarpText of the TextUIElement and then use a Graphics object in order to calculate how much space you need in order to fit the text of the note. Then you could enlarge the note UIElement in order to fit the whole text.
In order to make the notes read only you may set Locked property of the notes to true. More about Locked property you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/HTML/Infragistics4.Win.UltraWinSchedule.v15.1~Infragistics.Win.UltraWinSchedule.Note~Locked.html
Please check the attached sample solution implementing this approach and let me know if you need any further assistance.
Looking forward to your reply.