blazor-devexpress-dot-blazor-dot-dxfilterbuilderfield-32e1b957.md
Specifies the field caption to be displayed in the field tree.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue("")]
[Parameter]
public string Caption { get; set; }
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
The field caption.
|
The Filter Builder component allows you to customize field captions to be displayed in the tree (DxFilterBuilderField.Caption) and in the resulting filter criteria (DxFilterBuilderField.CaptionFullPath):
<DxFilterBuilder>
<Fields>
@* ... *@
<DxFilterBuilderField FieldName="SupplierId" Caption="Supplier" Type="@typeof(int)">
<Fields>
<DxFilterBuilderField FieldName="Supplier.CompanyName"
Caption="Company Name"
CaptionFullPath="Supplier.Company Name"
Type="@typeof(string)" />
<DxFilterBuilderField FieldName="Supplier.ContactName"
Caption="Contact Name"
CaptionFullPath="Supplier.Contact Name"
Type="@typeof(string)" />
</Fields>
</DxFilterBuilderField>
</Fields>
</DxFilterBuilder>
See Also