Back to Devexpress

GridHeaderFilterEditorType Enum

aspnet-devexpress-dot-web-21fb2a09.md

latest2.1 KB
Original Source

GridHeaderFilterEditorType Enum

Lists editor types in the header filter.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public enum GridHeaderFilterEditorType
vb
Public Enum GridHeaderFilterEditorType

Members

NameDescription
StartDateEdit

The date editor that specifies the start point of a date range.

| | EndDateEdit |

The date editor that specifies the end point of a date range.

| | Calendar |

The calendar.

| | CheckBoxList |

The check box list.

| | ListBox |

The list box.

| | StartSpinEdit |

The spin editor that specifies the start point of a numeric range.

| | EndSpinEdit |

The spin editor that specifies the end point of a numeric range.

| | TrackBar |

The track bar.

|

The following properties accept/return GridHeaderFilterEditorType values:

Remarks

Use the EditorType property to identify an editor type in the header filter.

Web Forms:

csharp
// For ASPxCardView
protected void ASPxCardView1_HeaderFilterEditorInitialize(object sender, ASPxCardViewHeaderFilterEditorInitializeEventArgs e) {
    if (e.EditorType == GridHeaderFilterEditorType.Calendar){
        //...
        e.Editor.Enabled = false;
    }
}

MVC:

csharp
settings.HeaderFilterEditorInitialize = (s, e) => {
    if (e.EditorType == GridHeaderFilterEditorType.Calendar){
        //...
        e.Editor.Enabled = false;
    }
};

See Also

DevExpress.Web Namespace