Hello,
Is there a way to change the calendar tooltip? I'm using it for the first time, but the info of the appointments are chopped into many lines... I'm sending you an image to see what I mean.
Thank you
There is no way to change the tooltip, but you can set the TipStyleActivity property to 'None', which will switch them off altogether, and then use the control's MouseEnterElement event to show a custom tooltip (i.e., use the .NET ToolTip component, or our UltraToolTipManager component). Note that you can also use the MouseLeaveElement event to hide them
Ok. I've tried to use the UltraTooltipManager - which is better for my case - but I can't seem to get it done, since the Appointments of the dayview or the weekview don't get tooltips. How can I do that? Can you please provide me with a code example? I would really appreciate it!
Thanks!
You can handle MouseEnterElement and case elements of type AppointmentUIElement, and show the tooltip from there. You can use the e.Element's GetContext method to get a reference to the Appointment (pass in typeof(Appointment)) so you know what to display in the tooltip.
Ok, this is what I did and it works, but it doesn't feel right...
private void uDayView_MouseEnterElement(object sender, UIElementEventArgs e){ Appointment appuiel = (Appointment)e.Element.GetContext(typeof(Appointment)); if (appuiel != null) { string tooltiptext = <my tool string>;
utooltipAppointments.SetUltraToolTip(e.Element.Control, new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo(<my tool info>)); utooltipAppointments.ShowToolTip(e.Element.Control); } else { utooltipAppointments.SetUltraToolTip(e.Element.Control, new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo(<blank tool info>)); }}
Is this ok? I mean if you could just give me a hint or any correction that you think, it would be great!
Ok, I wiil give it a shot and tell you what I've done...