DekGenius.com
[ Team LiB ] Previous Section Next Section

Calendar.NET 1.1, disposable

System.Web.UI.MobileControls (system.web.mobile.dll)class

The Calendar mobile control wraps a full-blown System.Web.UI.WebControls.Calendar web control instance, and provides a subset of its functionality (depending on the capabilities of the mobile device). The mobile Calendar class provides most of the same properties, including the SelectionChanged event, the SelectedDate and SelectedDates properties, and numerous other display-related properties. The SelectionMode property determines what type of selections are allowed for the calendar (day, week, or month). The Calendar does not expose other properties specific to HTML rendering, but you can access the underlying System.Web.UI.WebControls.Calendar web control through the WebCalendar property and modify these settings directly. Keep in mind, however, that these settings will not apply when the calendar is rendered to cHTML or WML. In this case, the full calendar cannot be shown, and a multiple-screen "wizard-like" calendar control will be used instead.

public class Calendar : MobileControl, System.Web.UI.IPostBackEventHandler {
// Public Constructors
   public Calendar( );
// Public Instance Properties
   public string CalendarEntryText{set; get; }
   public FirstDayOfWeek FirstDayOfWeek{set; get; }
   public DateTime SelectedDate{set; get; }
   public SelectedDatesCollection SelectedDates{get; }
   public CalendarSelectionMode SelectionMode{set; get; }
   public bool ShowDayHeader{set; get; }
   public DateTime VisibleDate{set; get; }
   public Calendar WebCalendar{get; }
// Public Instance Methods
   public void RaiseSelectionChangedEvent( );
// Protected Instance Methods
   protected virtual Calendar CreateWebCalendar( );
   protected virtual void OnSelectionChanged( );
// Events
   public event EventHandler SelectionChanged;
}

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) MobileControl(System.Web.UI.IAttributeAccessor) Calendar(System.Web.UI.IPostBackEventHandler)

Returned By

System.Web.UI.MobileControls.Adapters.ChtmlCalendarAdapter.Control, System.Web.UI.MobileControls.Adapters.HtmlCalendarAdapter.Control, System.Web.UI.MobileControls.Adapters.WmlCalendarAdapter.Control

    [ Team LiB ] Previous Section Next Section