Back to Devexpress

DxTimeEdit<T>.HourIncrement Property

blazor-devexpress-dot-blazor-dot-dxtimeedit-1-ff3d5620.md

latest1.3 KB
Original Source

DxTimeEdit<T>.HourIncrement 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 HourIncrement { get; set; }

Property Value

TypeDefaultDescription
Int321

The interval.

|

Remarks

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

If the specified HourIncrement 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
<DxTimeEdit Time="DateTime.Now" 
            ScrollPickerFormat="h m s" 
            HourIncrement="2" />

See Also

DxTimeEdit<T> Class

DxTimeEdit<T> Members

DevExpress.Blazor Namespace