Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxRangeSelectorScale.ShowCustomBoundaryTicks Property

Specifies whether to display ticks for start and end scale values when they do not match major or minor ticks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(true)]
[Parameter]
public bool ShowCustomBoundaryTicks { get; set; }

#Property Value

Type Default Description
Boolean true

true to always display ticks for start and end scale values; false to hide ticks for start and end scale values when they do not match major or minor ticks.

#Remarks

The Range Selector always displays ticks at the scale’s boundaries defined by StartValue and EndValue properties or data source values.

Range Selector - Scale Boundary Ticks

Set the ShowCustomBoundaryTicks property to false to hide ticks for start and end scale values that do not matck major or minor ticks.

Range Selector - Hide Custom Boundary Ticks

Razor
<DxRangeSelector Width="1100px"
                 Height="200px"
                 SelectedRangeStartValue="@(new DateTime(2024, 2, 1))"
                 SelectedRangeEndValue="@(new DateTime(2024, 2, 14))">
    <DxRangeSelectorScale StartValue="@(new DateTime(2024, 1, 1))"
                          EndValue="@(new DateTime(2024, 6, 1))"
                          TickInterval="ChartAxisInterval.Weeks(2)"
                          MinorTickInterval="ChartAxisInterval.Week"
                          ShowCustomBoundaryTicks="false"
                          MinRange="ChartAxisInterval.Week"
                          MaxRange="ChartAxisInterval.Month"
                          ValueType="ChartAxisDataType.DateTime">
        <DxRangeSelectorScaleMarker>
            <DxRangeSelectorScaleMarkerLabel>
                <DxTextFormatSettings Type="TextFormat.MonthAndYear" />
            </DxRangeSelectorScaleMarkerLabel>
        </DxRangeSelectorScaleMarker>
    </DxRangeSelectorScale>
    <DxRangeSelectorSliderMarker>
        <DxTextFormatSettings Type="TextFormat.MonthAndDay" />
    </DxRangeSelectorSliderMarker>
</DxRangeSelector>
See Also