Back to Devexpress

DxDateEdit<T>.TimeSectionHourIncrement Property

blazor-devexpress-dot-blazor-dot-dxdateedit-1-43ec8310.md

latest1.4 KB
Original Source

DxDateEdit<T>.TimeSectionHourIncrement Property

Specifies the interval between hour values in a scroll picker.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(1)]
[Parameter]
public int TimeSectionHourIncrement { get; set; }

Property Value

TypeDefaultDescription
Int321

The interval.

|

Remarks

The TimeSectionHourIncrement property allows you to display fewer values in the Hour column when you do not need a precise selection.

If the specified TimeSectionHourIncrement property value is less than 1, the component resets this value to 1.

In the following example, the scroll picker displays only odd hours:

razor
<DxDateEdit Date="DateTime.Now"
            TimeSectionVisible="true" 
            TimeSectionScrollPickerFormat="h m s" 
            TimeSectionHourIncrement="2" />

See Also

DxDateEdit<T> Class

DxDateEdit<T> Members

DevExpress.Blazor Namespace