alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class QueryBuilderEvents<TValue>

    Configures the event handlers for the SfQueryBuilder<TValue>.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    QueryBuilderEvents<TValue>
    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 QueryBuilderEvents<TValue> : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Type Parameters
    Name Description
    TValue

    The type of data used in the Query Builder.

    Remarks

    The QueryBuilderEvents<TValue> component is used to define callbacks for various events in the SfQueryBuilder<TValue>, such as value changes, rule modifications, and data binding.

    Constructors

    QueryBuilderEvents()

    Declaration
    public QueryBuilderEvents()

    Properties

    Changed

    Gets or sets an event callback that is raised after a condition (And/Or), field, operator, or value has been changed.

    Declaration
    [Parameter]
    public EventCallback<ChangeEventArgs> Changed { get; set; }
    Property Value
    Type Description
    EventCallback<ChangeEventArgs>

    An EventCallback<TValue> that will be invoked with ChangeEventArgs. The default value is null.

    Remarks

    This event is useful for triggering dependent logic or state updates after a change has occurred in the Query Builder.

    Created

    Gets or sets an event callback that is raised after the SfQueryBuilder<TValue> component is created.

    Declaration
    [Parameter]
    public EventCallback<object> Created { get; set; }
    Property Value
    Type Description
    EventCallback<object>

    An EventCallback<TValue> that will be invoked with the component instance. The default value is null.

    Remarks

    This event can be used to perform initialization tasks that require the component to be fully rendered.

    DataBound

    Gets or sets an event callback that is triggered when the data source is populated in the SfQueryBuilder<TValue>.

    Declaration
    [Parameter]
    public EventCallback<object> DataBound { get; set; }
    Property Value
    Type Description
    EventCallback<object>

    An EventCallback<TValue>. The default value is null.

    Remarks

    This event is raised after the Query Builder has been bound to its data source, allowing for further manipulation or inspection of the data.

    OnActionFailure

    Gets or sets an event callback that is raised when a data fetch request from a remote server fails.

    Declaration
    [Parameter]
    public EventCallback<Exception> OnActionFailure { get; set; }
    Property Value
    Type Description
    EventCallback<Exception>

    An EventCallback<TValue> that will be invoked with the Exception that occurred. The default value is null.

    Remarks

    This event is particularly useful for handling errors that occur during remote data operations, allowing for custom error handling and user notification.

    OnValueChange

    Gets or sets an event callback that is raised before a condition (And/Or), field, operator, or value is changed.

    Declaration
    [Parameter]
    public EventCallback<ChangeEventArgs> OnValueChange { get; set; }
    Property Value
    Type Description
    EventCallback<ChangeEventArgs>

    An EventCallback<TValue> that will be invoked with ChangeEventArgs. The default value is null.

    Remarks

    This event provides an opportunity to perform actions or validations before the change is committed.

    RuleChanged

    Gets or sets an event callback that is raised when a rule is changed.

    Declaration
    [Parameter]
    public EventCallback<RuleChangeEventArgs> RuleChanged { get; set; }
    Property Value
    Type Description
    EventCallback<RuleChangeEventArgs>

    An EventCallback<TValue> that will be invoked with RuleChangeEventArgs. The default value is null.

    Remarks

    This event is triggered when a rule's properties, such as field, operator, or value, are modified. It provides detailed information about the change, including the rule's unique identifier and the type of change.

    RuleDragStarting

    Gets or sets an event callback that is invoked before a rule or group is dragged within the SfQueryBuilder<TValue>.

    Declaration
    [Parameter]
    public EventCallback<RuleDragStartingEventArgs> RuleDragStarting { get; set; }
    Property Value
    Type Description
    EventCallback<RuleDragStartingEventArgs>

    An EventCallback<TValue> that will be invoked with RuleDragStartingEventArgs. The default value is null.

    Remarks

    This event is triggered only when the AllowDragAndDrop property is set to true. It allows you to cancel the drag operation by setting Cancel to true.

    RuleDropped

    Gets or sets an event callback that is raised after a rule or group is dropped onto another item in the SfQueryBuilder<TValue>.

    Declaration
    [Parameter]
    public EventCallback<RuleDroppedEventArgs> RuleDropped { get; set; }
    Property Value
    Type Description
    EventCallback<RuleDroppedEventArgs>

    An EventCallback<TValue> that will be invoked with RuleDroppedEventArgs. The default value is null.

    Remarks

    This event is triggered only when the AllowDragAndDrop property is set to true, after a valid drop has occurred.

    RuleDropping

    Gets or sets an event callback that is invoked before a rule or group is dropped onto another item in the SfQueryBuilder<TValue>.

    Declaration
    [Parameter]
    public EventCallback<RuleDroppingEventArgs> RuleDropping { get; set; }
    Property Value
    Type Description
    EventCallback<RuleDroppingEventArgs>

    An EventCallback<TValue> that will be invoked with RuleDroppingEventArgs. The default value is null.

    Remarks

    This event is triggered only when the AllowDragAndDrop property is set to true. It provides an opportunity to prevent the drop by setting Cancel to true.

    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 being disposed.

    Overrides
    OwningComponentBase.Dispose(bool)
    Remarks

    This method is called to clean up resources, such as nullifying the reference to the parent SfQueryBuilder<TValue>.

    OnInitializedAsync()

    Handles component initialization.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()
    Remarks

    This method assigns the current instance to the parent SfQueryBuilder<TValue>'s Syncfusion.Blazor.QueryBuilder.SfQueryBuilder`1.Delegates property.

    Implements

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