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
230
UltraMonthViewMulti, fire event when clicking on the day equals to current active day
posted

Hi,

I am making a custom date control using UltraMaskedEdit and UltraMonthViewMulti. I create a DropdownEditorButton in ButtonsRight of the UltraMaskedEdit. Then I use event AfterActiveDayChanged of UltraMonthViewMulti to close the UltraMonthViewMulti.  Everything is good except for 1 issue.

If I select the same day with current active day, the event AfterActiveDayChanged is not fired. So the month view is not closed in that case. Is there any other event that I can use to resolve this issue?

Thanks,

  • 530
    Verified Answer
    Offline posted

    Hello Kim,

    AfterActiveDayChange will not be called because the active day is not changed. In this case, you could use MouseDown event instead. Here is a sample implementation.

    private void UltraMonthViewMulti1_MouseDown(object sender, MouseEventArgs e)
    {
        var dayObj = this.ultraMonthViewMulti1.GetDayFromPoint(e.Location);

        if(dayObj != null)
        {
            this.ultraMonthViewMulti1.Visible = false;
        }
    }

    If you have any question with this, please let me know.

    Best regards,
    Yuki Mita
    Developer Support Engineer
    Infragistics Inc.
    www.infragistics.com/support

    CalendarControl.zip