Skip to main content
All docs
V25.1
  • DxSpinEditSettings.AllowMouseWheel Property

    Specifies whether a user can rotate the mouse wheel to change the spin editor’s value.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue(true)]
    [Parameter]
    public bool AllowMouseWheel { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true if the spin editor’s value changes when a user rotates the mouse wheel; otherwise, false.

    Remarks

    Users can rotate the mouse wheel to change the spin editor’s value. Set the AllowMouseWheel property to false to disable this feature.

    Use the Increment property to adjust the change step value.

    <DxGrid Data="@Data"
            EditMode="GridEditMode.EditRow"
            ShowFilterRow="true">
        <Columns>
            <DxGridCommandColumn />
            <DxGridDataColumn FieldName="CompanyName" />
            <DxGridDataColumn FieldName="Country" />
            <DxGridDataColumn FieldName="City" />
            <DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c" >
                <EditSettings>
                    <DxSpinEditSettings AllowMouseWheel="false" />
                </EditSettings>
            </DxGridDataColumn>
            <DxGridDataColumn FieldName="Quantity" >
                <EditSettings>
                    <DxSpinEditSettings  AllowMouseWheel="false" />
                </EditSettings>
            </DxGridDataColumn>
            <DxGridDataColumn FieldName="Total" DisplayFormat="c" 
                              UnboundType="GridUnboundColumnType.Decimal" 
                              UnboundExpression="[UnitPrice]*[Quantity]" />
        </Columns>
    </DxGrid>
    

    To modify a user capability to change the spin editor’s value by the mouse wheel at runtime, use the ISpinEditSettings.AllowMouseWheel property instead.

    Implements

    See Also