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