Skip to main content
All docs
V26.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.v26.1.dll

    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 use the mouse wheel to change the spin editor value. Set the AllowMouseWheel property to false to disable this functionality.

    Use the Increment property to adjust the change step value.

    <DxGrid Data="@Data" ShowFilterRow="true">
        <Columns>
            <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 enable/disable this functionality at runtime, use the ISpinEditSettings.AllowMouseWheel property instead.

    Implements

    See Also