Category / Section
How to select year at Runtime in CalendarEdit?
1 min read
How to select year at Runtime in CalendarEdit?
We can edit the year at Runtime by setting AllowYearEditing property to true. The default value of this property is false
To set AllowYearEditing property, use the following code
XAML
<syncfusion:CalendarEdit AllowYearEditing="True" HorizontalAlignment="Center" x:Name="cal" VerticalAlignment="Center"/>
C#
CalendarEdit cal = new CalendarEdit(); cal.HorizontalAlignment = HorizontalAlignment.Center; cal.VerticalAlignment = VerticalAlignment.Center; cal.AllowYearEditing = true; grid.Children.Add(cal);