Basic Date Picker Documentation

BasicDatePicker.MonthSelectorEnabled Property

Gets or sets a value indicating whether the month selector is enabled.

[Visual Basic]
Public Property MonthSelectorEnabled As Boolean
[C#]
public bool MonthSelectorEnabled {get; set;}

Property Value

The default value is true.

Remarks

Use the MonthSelectorEnabled property to specify whether the drop down month selector in the title is displayed. The month selector can be opened by clicking on the current month name in the header.

The appearance of the month selector can be customized by editing the BasicDatePicker.css file.

Example

[Visual Basic, C#] The following example demonstrates how to use the MonthSelectorEnabled property to show or hide the drop down list of month names in the title.

[Visual Basic]
<%@ Page Language="VB" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker MonthSelectorEnabled Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker MonthSelectorEnabled Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             MonthSelectorEnabled="false">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

[C#]
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Register TagPrefix="bdp" Namespace="BasicFrame.WebControls" Assembly="BasicFrame.WebControls.BasicDatePicker" %>
<html>
 <head>
    <title>Basic Date Picker MonthSelectorEnabled Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker MonthSelectorEnabled Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             MonthSelectorEnabled="false">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace | YearSelectorEnabled