Skip to main content
All docs
V25.1
  • DxFilterBuilderField.Caption Property

    Specifies the field caption to be displayed in the field tree.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    [DefaultValue("")]
    [Parameter]
    public string Caption { get; set; }

    Property Value

    Type Default Description
    String String.Empty

    The field caption.

    Remarks

    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>
    

    Filter Builder - Caption Customization

    See Also