DateEditTimeSectionProperties.ShowSecondHand Property
Gets or sets a value that specifies whether the second hand is displayed on the clock.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false |
|
Remarks
Use the ShowSecondHand property to specify whether the second hand is visible on the clock. The second hand image can be specified via the DateEditTimeSectionProperties.SecondHandImage property.
Visibility of hour and minute hands can be controlled by the DateEditTimeSectionProperties.ShowHourHand and DateEditTimeSectionProperties.ShowMinuteHand properties respectively.
Example
The example below demonstrates how you can customize the time section to allow end-users to specify time with seconds. For this purpose, the following properties are specified.
- The
DateEditTimeSectionProperties.ShowSecondHand
property is set totrue
to display the second hand on the clock. - The TimeEditProperties.EditFormatString property is set to “T” to format the time displayed within the time edit using the long time pattern.
- The AppearanceStyle.Paddings property is specified (via ASPxDateEdit.TimeSectionProperties.TimeEditCellStyle.Paddings) to fit the time edit size to its inner content.
The image below shows the result.
<dx:ASPxDateEdit ID="ASPxDateEdit1" runat="server">
<TimeSectionProperties ShowSecondHand="True" Visible="True">
<TimeEditProperties EditFormatString="T">
</TimeEditProperties>
<TimeEditCellStyle>
<Paddings PaddingLeft="20px" PaddingRight="20px" />
</TimeEditCellStyle>
</TimeSectionProperties>
</dx:ASPxDateEdit>