ASPxGridHeaderFilterEditorInitializeEventArgs.EditorType Property
Gets the editor type.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v20.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
GridHeaderFilterEditorType | The editor type. |
Available values:
Name | Description |
---|---|
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. |
Remarks
Web Forms:
// For ASPxCardView
protected void ASPxCardView1_HeaderFilterEditorInitialize(object sender, ASPxCardViewHeaderFilterEditorInitializeEventArgs e) {
if (e.EditorType == GridHeaderFilterEditorType.Calendar){
//...
e.Editor.Enabled = false;
}
}
MVC:
settings.HeaderFilterEditorInitialize = (s, e) => {
if (e.EditorType == GridHeaderFilterEditorType.Calendar){
//...
e.Editor.Enabled = false;
}
};
See Also