menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class QueryBuilderColumns - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class QueryBuilderColumns

    Serves as a container for defining a collection of QueryBuilderColumn components in the Syncfusion.Blazor.QueryBuilder.

    Inheritance
    System.Object
    QueryBuilderColumns
    Namespace: Syncfusion.Blazor.QueryBuilder
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class QueryBuilderColumns : OwningComponentBase
    Remarks

    The QueryBuilderColumns component is used to declaratively specify the columns available for creating rules in the Query Builder. Each child QueryBuilderColumn defines the properties of a single column.

    Examples

    The following example demonstrates how to define columns for the Syncfusion.Blazor.QueryBuilder.

    <SfQueryBuilder TValue="EmployeeDetails">
        <QueryBuilderColumns>
            <QueryBuilderColumn Field="EmployeeID" Label="Employee ID" Type="ColumnType.Number"></QueryBuilderColumn>
            <QueryBuilderColumn Field="FirstName" Label="First Name" Type="ColumnType.String"></QueryBuilderColumn>
            <QueryBuilderColumn Field="HireDate" Label="Hire Date" Type="ColumnType.Date" Format="dd/MM/yyyy"></QueryBuilderColumn>
        </QueryBuilderColumns>
    </SfQueryBuilder>
    
    @code {
        public class EmployeeDetails
        {
            public int EmployeeID { get; set; }
            public string FirstName { get; set; }
            public System.DateTime HireDate { get; set; }
        }
    }

    Constructors

    QueryBuilderColumns()

    Declaration
    public QueryBuilderColumns()

    Properties

    ChildContent

    Gets or sets the content to be rendered inside the QueryBuilderColumns component.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    A Microsoft.AspNetCore.Components.RenderFragment that typically contains one or more QueryBuilderColumn components. The default value is null.

    Remarks

    This property allows you to define the set of columns available in the Syncfusion.Blazor.QueryBuilder by adding QueryBuilderColumn instances as child elements.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    Dispose(Boolean)

    Releases the unmanaged resources used by the QueryBuilderColumns component and optionally releases the managed resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    OnInitializedAsync()

    Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved