ASP.NET Calendar - Tutorial - Month scrolling

You can set the number of months that calendar should scroll with ScrollBy property.
By default, it is set to 1.

When you set it to a number larger than the number of columns in the calendar, then calendar changes view to a next set of months. See an example of this below.

In this example calendar has 2 columns. ScrollBy is also set to 2, so calendar scrolls by 2 months.
 
<obout:Calendar runat="server"
     Columns="2"
     Rows="2"
     ScrollBy="2">
</obout:Calendar>
In this example calendar has 2 columns, but ScrollBy is set to 3, so calendar scrolls to a next set of 4 months.
 
<obout:Calendar runat="server"
     Columns="2"
     Rows="2"
     ScrollBy="3">
</obout:Calendar>

"Got only two words ... You ROCK!!!"

Randy Finster

Random testimonial   All testimonials