Articles in this section
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);
 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied