menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TaggingEventArgs<T> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TaggingEventArgs<T>

    Provides event data for the tagging operation, triggered when a tag or chip is about to be added in MultiSelect, TagBox, or similar controls.

    Inheritance
    System.Object
    TaggingEventArgs<T>
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TaggingEventArgs<T> : Object
    Type Parameters
    Name Description
    T

    The type of the item being tagged or added.

    Remarks

    Use TaggingEventArgs<T> to block, customize, or manipulate a new tag/chip before it commits—ideal for business rules or chip customization.

    Examples
    void OnTagging(TaggingEventArgs<MyType> args) {
        if (args.ItemData?.SomeProp == "blocked") {
            args.Cancel = true; // prevent this tag from being created
        }
        args.SetClass = "e-important-tag"; // add highlight
    }

    Constructors

    TaggingEventArgs()

    Declaration
    public TaggingEventArgs()

    Properties

    Cancel

    Cancel property for preventing or allowing the tag/chip to be created or committed.

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

    true cancels tagging; false allows.

    E

    (Obsolete) The raw browser event—preserved for obsolete compatibility.

    Declaration
    public object E { get; set; }
    Property Value
    Type
    System.Object

    IsInteracted

    Gets a value indicating whether the event was raised by user action, as opposed to programmatic logic.

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

    true on user interaction.

    ItemData

    Data about the tag's data object being added.

    Declaration
    public T ItemData { get; }
    Property Value
    Type
    T

    SetClass

    CSS class to apply to the tag/chip.

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

    A string representing the CSS class.

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