alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class QueryBuilderColumnValidation

    Defines and configures the validation rules for a specific column within the Syncfusion.Blazor.QueryBuilder.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    QueryBuilderColumnValidation
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.QueryBuilder
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class QueryBuilderColumnValidation : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    The QueryBuilderColumnValidation component is used within a QueryBuilderColumn to specify validation criteria, such as whether a value is required or must fall within a specified range.

    Examples

    The following example demonstrates how to apply validation to a column in the Query Builder.

    <SfQueryBuilder>
        <QueryBuilderColumns>
            <QueryBuilderColumn Field="EmployeeID" Label="Employee ID" Type="ColumnType.Number">
                <QueryBuilderColumnValidation IsRequired="true" Min="1000" Max="2000" />
            </QueryBuilderColumn>
        </QueryBuilderColumns>
    </SfQueryBuilder>

    Constructors

    QueryBuilderColumnValidation()

    Declaration
    public QueryBuilderColumnValidation()

    Properties

    IsRequired

    Gets or sets a value indicating whether a value is required for the column.

    Declaration
    [Parameter]
    public bool IsRequired { get; set; }
    Property Value
    Type Description
    bool

    true if a value is required; otherwise, false. The default value is false.

    Remarks

    When set to true, the Query Builder will enforce that the user provides a value for this column.

    Max

    Gets or sets the maximum allowed value for a numeric column.

    Declaration
    [Parameter]
    public int Max { get; set; }
    Property Value
    Type Description
    int

    An integer representing the maximum value. The default value is 0.

    Remarks

    This property is used for range validation on numeric fields, ensuring that the entered value is not greater than the specified maximum.

    Min

    Gets or sets the minimum allowed value for a numeric column.

    Declaration
    [Parameter]
    public int Min { get; set; }
    Property Value
    Type Description
    int

    An integer representing the minimum value. The default value is 0.

    Remarks

    This property is used for range validation on numeric fields, ensuring that the entered value is not less than the specified minimum.

    Methods

    Dispose(bool)

    Releases the resources used by the component.

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

    A boolean value indicating whether the component is currently being disposed.

    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    Initializes the component and links the validation settings to its parent QueryBuilderColumn.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A Task that represents the asynchronous initialization process.

    Overrides
    ComponentBase.OnInitializedAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved