Basic Date Picker Documentation

BasicDatePicker.YearSelectorEnabled Property

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

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

Property Value

The default value is true.

Remarks

Use the YearSelectorEnabled property to specify whether the drop down year selector in the title is displayed. The year selector can be opened by clicking on the current year label in the header.

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

Example

[Visual Basic, C#] The following example demonstrates how to use the YearSelectorEnabled property to show or hide the drop down list of years 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 YearSelectorEnabled Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker YearSelectorEnabled Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             YearSelectorEnabled="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 YearSelectorEnabled Example</title>
 </head>
 <body>
     <form runat="server">
         <h3>Basic Date Picker YearSelectorEnabled Example</h3>
         <bdp:BasicDatePicker 
             ID="BasicDatePicker1" 
             runat="server"
             YearSelectorEnabled="false">
         </bdp:BasicDatePicker>
     </form>
 </body>
</html>

See Also

BasicDatePicker Class | BasicFrame.WebControls Namespace | MonthSelectorEnabled