Skip to main content
All docs
V26.1
  • DxSpinEditSettings.AllowUpDownArrowKeys Property

    Specifies whether users can press Up/Down arrow keys to increase/decrease the editor value.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v26.1.dll

    Declaration

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

    Property Value

    Type Default Description
    Boolean true

    true if a user can use arrow keys to change the editor value; otherwise, false.

    Remarks

    Users can press Up Arrow and Down Arrow keys to change the Spin Edit value. Set the AllowUpDownArrowKeys property to false to disable this functionality.

    Use the Increment property to adjust the change step value.

    <DxGrid Data="@items" KeyFieldName="Id" ShowFilterRow="true" >
      <Columns>
        <DxGridDataColumn FieldName="Quantity">
          <EditSettings>
            <DxSpinEditSettings AllowUpDownArrowKeys="false" />
          </EditSettings>
        </DxGridDataColumn>
      </Columns>
    </DxGrid>
    
    @code {
      List<OrderItem> items = new() {
        new() { Id = 1, Quantity = 10 },
        new() { Id = 2, Quantity = 25 }
      };
    
      public class OrderItem {
        public int Id { get; set; }
        public int Quantity { get; set; }
      }
    }
    

    To enable or disable this functionality at runtime, use the ISpinEditSettings.AllowUpDownArrowKeys property instead.

    See Also