TreeListDataColumnFilterMenuTemplateContext.HierarchicalDateView Property
Specifies whether the filter menu displays dates as a hierarchy.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public RenderFragment HierarchicalDateView { get; }
Property Value
Type | Description |
---|---|
RenderFragment | Visual representation of filter menu values. |
Remarks
Default filter menu displays DateTime
and DateTime?
values hierarchically. You can also use the ListView property to display dates as a plain list.
The following code snippet adds space after the caption and restores default filter menu functionality:
<DxTreeList Data="Data"
KeyFieldName="Id"
ParentKeyFieldName="ParentId"
FilterMenuButtonDisplayMode="TreeListFilterMenuButtonDisplayMode.Always"
CssClass="max-h-480">
<Columns>
<DxTreeListDataColumn FieldName="Name" Caption="Task" />
<DxTreeListDataColumn FieldName="EmployeeName" Caption="Assigned To" TextAlignment="TreeListTextAlignment.Left" />
<DxTreeListDataColumn FieldName="StartDate" Width="150px">
<FilterMenuTemplate>
<div class="p-3">
@context.HierarchicalDateView
</div>
</FilterMenuTemplate>
</DxTreeListDataColumn>
<DxTreeListDataColumn FieldName="DueDate" Width="150px" />
</Columns>
</DxTreeList>
See Also