menu

Blazor

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

    Show / Hide Table of Contents

    Class HeaderTemplateModel

    Represents the data context for the header template of a query group in the SfQueryBuilder<TValue>.

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

    This model provides the necessary information to customize the header of a group, including its ID, condition, and lock state.

    Constructors

    HeaderTemplateModel()

    Declaration
    public HeaderTemplateModel()

    Properties

    Condition

    Gets or sets the logical condition for the group.

    Declaration
    public string Condition { get; set; }
    Property Value
    Type Description
    System.String

    A string that specifies the logical operator (e.g., "AND", "OR") connecting the rules within the group.

    Remarks

    This property determines how the rules and sub-groups within this group are evaluated.

    ID

    Gets or sets the unique identifier for the group.

    Declaration
    public string ID { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the group's unique ID.

    Remarks

    This ID is used to distinguish between different groups in the SfQueryBuilder<TValue>.

    IsLocked

    Gets or sets a value indicating whether the group is locked.

    Declaration
    public bool IsLocked { get; set; }
    Property Value
    Type Description
    System.Boolean

    A bool. If true, the group cannot be modified by the user. The default is false.

    Remarks

    A locked group prevents users from adding, removing, or changing rules and conditions within it.

    Not

    Gets or sets a value indicating whether to apply a 'NOT' condition to the entire group.

    Declaration
    public Nullable<bool> Not { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    A bool?. If true, a 'NOT' condition is applied to the group. The default is false.

    Remarks

    When set to true, the entire group's result is inverted.

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