Skip to main content
All docs
V24.1

VisualRangeBuilder.Length(VizTimeInterval) Method

The range's length. Mirrors the client-side length option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public VisualRangeBuilder Length(
    VizTimeInterval value
)

Parameters

Name Type Description
value VizTimeInterval

The option value.

Returns

Type Description
VisualRangeBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().RangeSelector()
    .Value(value => value
        .Length(VizTimeInterval.Day)
    )
)
See Also