Skip to main content

MVCxGridViewColumn.EditorProperties() Method

Allows you to configure GridView columns of different types.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public GridColumnEditorPropertiesFactory EditorProperties()

Returns

Type Description
GridColumnEditorPropertiesFactory

A GridColumnEditorPropertiesFactory object that provides methods allowing you to configure different column types.

Remarks

settings.Columns.Add(column => {
     column.FieldName = "Photo";
     column.EditorProperties().BinaryImage(p => {
          p.ImageHeight = 170;
          p.ImageWidth = 160;
          p.EnableServerResize = true;
          p.ImageSizeMode = ImageSizeMode.FitProportional;
          p.CallbackRouteValues = new { Action = "BinaryImageColumnPhotoUpdate", Controller = "Editing" };
          p.EditingSettings.Enabled = true;
          p.EditingSettings.UploadSettings.UploadValidationSettings.MaxFileSize = 4194304;
     });
});

Online Examples

View Example: How to implement cascading combo boxes in the grid's edit form

View Example: Implement cascading combo boxes in batch edit mode

View Example: How to use a combo box column in callback mode

See Also