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
295
Setting VisualMonths
posted

Is there a way to manually set the VisualMonths property?  I have a situation where users may search for data and bring back data within some date range.  I'd like to have the calendar display the first month that has data rather than automatically having it default to the current month which is does now.  Is there a way to set this?

  • 69832
    Verified Answer
    Offline posted

    I'm not certain I'm on track here because you didn't mention which control you were using, but the UltraMonthViewMulti control exposes a VisibleMonths collection property which returns the months that are currently being displayed, and you can modify the first month (and thus whichever ones follow) by setting the FirstMonth property. It takes an object of type Month, which you can access via the UltraCalendarInfo's GetMonth method.