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
100
wants to stop scrolling of ultraMonthViewMulti while scrolled using mouse.
posted

Hi,

If the focus is on the ultraMonthViewMulti control and if the mouse is scrolled then months of the control scrolled, i want to stop this behaviour. Is there any property to do that?

Regards,

Abid

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    No, the control does not provide a way to prevent scrolling through the public object model. You can, however, hack this out by handling VisibleMonthsChanged and setting the FirstMonth property asynchronously therein.

    Example:
    void mvm_VisibleMonthsChanged(object sender, EventArgs e)
    {
        this.BeginInvoke( new MethodInvoker(this.OnVisibleMonthsChangedAsync) );
    }

    private void OnVisibleMonthsChangedAsync()
    {
        this.mvm.FirstMonth = this.mvm.CalendarInfo.GetMonth( DateTime.Today );
    }

Children