Gets or sets a value indicating whether the year selector is enabled.
The default value is true.
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.
[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 id="Form1" 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 id="Form1" runat="server">
<h3>Basic Date Picker YearSelectorEnabled Example</h3>
<BDP:BasicDatePicker
id="BasicDatePicker1"
runat="server"
YearSelectorEnabled="False">
</BDP:BasicDatePicker>
</form>
</body>
</html>
BasicDatePicker Class | BasicFrame.WebControls Namespace | MonthSelectorEnabled