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
185
Appoinment Location
posted

Hi,

Is there a way to have the location and the size of an appoinment in a dayview / weekView / MonthView?

I want to open a panel with a radiobutton under the appoinment, when the user is editing an appointment.

Thanks,

Marcelo.

  • 69832
    Verified Answer
    Offline posted

    Example:

    using nsMonthViewSingle = Infragistics.Win.UltraWinSchedule.MonthViewSingle;

    UIElement controlElement = control != null ? control.UIElement : null;
    UIElement elementFromPoint = controlElement != null ? controlElement.ElementFromPoint(e.Location) : null;
    nsMonthViewSingle.AppointmentUIElement appointmentElement =
        elementFromPoint != null ?
        elementFromPoint.GetAncestor( typeof(nsMonthViewSingle.AppointmentUIElement) ) as nsMonthViewSingle.AppointmentUIElement :
        null;

    Note that there are other possible solutions to your problem, such as (a) a custom embeddable editor that has the panel with the option buttons or (b) using the IUIElementCreationFilter interface to position additional UIElements such as an OptionButtonUIElement.