Skip to main content

TreeListColumnEditorPropertiesFactory.SpinEdit(Action<MVCxColumnSpinEditProperties>) Method

Allows you to configure a spin edit column.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void SpinEdit(
    Action<MVCxColumnSpinEditProperties> method
)

Parameters

Name Type Description
method Action<MVCxColumnSpinEditProperties>

A delegate method that accepts an MVCxColumnSpinEditProperties object as a parameter.

Remarks

settings.Columns.Add(column => {
     column.FieldName = "UnitPrice";
     column.EditorProperties().SpinEdit(p => {
          p.DisplayFormatString = "c";
          p.DisplayFormatInEditMode = true;
          p.MinValue = 0;
          p.MaxValue = 1000000;
     });
});
See Also