FileManagerSettings.DetailsViewCustomColumnHeaderFilterFillItems Property
Enables you to provide custom filter items displayed within a filter dropdown for a custom column.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public FileManagerDetailsViewCustomColumnHeaderFilterFillItemsEventHandler DetailsViewCustomColumnHeaderFilterFillItems { get; set; }
Property Value
Type | Description |
---|---|
FileManagerDetailsViewCustomColumnHeaderFilterFillItemsEventHandler | A FileManagerDetailsViewCustomColumnHeaderFilterFillItemsEventHandler delegate method. |
Remarks
settings.DetailsViewCustomColumnHeaderFilterFillItems = (s, e) => {
if(e.Column.Name == "CustomValue") {
e.Values.Clear();
e.AddShowAll();
e.AddValue("Media Files", string.Empty, "FileExtension = 'avi' or FileExtension = 'mp3' or FileExtension = 'jpg'");
e.AddValue("Documents", string.Empty, "FileExtension = 'txt' or FileExtension = 'rtf' or FileExtension = 'xml'");
e.AddValue("Photos", "jpg");
}
};
See Also