Articles in this section
Category / Section

How to hide the Calendar and show clock in DatetTimeEdit control?

1 min read

The Calendar of DateTimeEdit control can be hidden by setting the properties EnableClassicStyle as true and IsCalendarEnabled as false. The Clock of DateTimeEdit control can be enabled be setting the properties EnableClassicStyle as true and IsWatchEnabled as true. If the property EnableClassicStyle is false we cannot hide the Calendar in DateTimeEdit control.

 

<Grid>
 <syncfusion:DateTimeEdit Name="datetime" Height="28" Width="180" 
                          Pattern="ShortTime" CanEdit="False" IsWatchEnabled="True"
                          IsCalendarEnabled="False" EnableClassicStyle="True">   
 </syncfusion:DateTimeEdit>
</Grid>

 

 datetime.IsWatchEnabled = true;
 datetime.IsCalendarEnabled = false;
 datetime.EnableClassicStyle = true;

 

The following screenshot displays the Clock of DateTimeEdit control

 

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