Calendar .NET (v.2.2.0.0)  
Welcome to Calendar .NET Samples site!
Calendar Spanning
Getting Started
  Overview
  What`s new
Samples
  Getting Started!
  Data Binding
  Event Bar
  Handling Events
  Spanning Items
  Localization
  Other Samples
Contact us!
  Support Forum
  Email Us

Calendar Spanning

Calendar.NET Control support events spanning. So if event takes more than one day it will be displayes as a single bar rendered through all days. Spanning is supported for Month, Weeks, Day and Task views. It is not supported for Year view and items will be displayed as text repeated in each month cell instead. There are all day events for Day view which will rendered on top if event lasts all day.

Overview

You can change spanning property either in design time or in runtime using SpanType property:

  C#   VB  
 

  CalendarCtrl.SpanType = CalendarSpanType.Overflowed;

  CalendarCtrl.SpanType = CalendarSpanType.Overflowed

[View C# Code]   [View VB.NET Code]

Values SpanType supports:
/// 
/// Specifies the the spanning model used for control.
/// 
public enum CalendarSpanType
{ 
  /// 
  /// Span will be used with text rendered as multiline
  /// 
  Multiline, 
  /// 
  /// Text that can't be rendered will be hidden
  /// 
  Overflowed
}
Example source codes are included in Control Download.
 

Copyright 2005 Mediachase. All rights reserved.