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.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(true)]
[Parameter]
public bool AllowMouseWheel { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true |
|
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