Hi,
I have a one UltraMonthViewMulti Control in my form. when hover mouse in control then corresponding day is holiday or any appointments it will display in the tool tip. tool tip messages like Holidays:Independence day but i want the message like only Description "Independence day" .
My code in c# for add holiday :
ultraCalendarInfo1.Holidays.Add(date,"Independence day");
Anybody help to remove header in tooltip please.
Hi Murali,
Thank you for contacting Infragistics Developer Support.
You can use the BeforeDisplayDayTooltip event. The arguments of this event have a Tooltip property from which you can remove the “Holidays:” part. To do that you can use code like:
if (e.Day.Holidays.Count > 0)
{
e.ToolTip = e.ToolTip.Replace("Holidays:\r\n", "");
}
Please let me know if you have any additional questions.
Thanks a lot. its really helpful for me.
i find another solution also:
if (e.Day.Holidays.Count > 0) { e.ToolTip = e.Day.Holidays[0].Text;
Thank you for your reply.
Yes, this is also a valid solution. Let me know if you have any additional questions on this matter.
Thank you for using Infragistics.