Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxTagBox<TData, TValue>.TagsChanged Event

Fires after the Tags collection changed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public EventCallback<IEnumerable<string>> TagsChanged { get; set; }

#Parameters

Type Description
IEnumerable<String>

The new tags collection.

#Remarks

Razor
<DxTagBox Data="@Cities"
          AllowCustomTags="true"
          Tags="@Tags"
          TagsChanged="@TagsChanged"
          @bind-Values="@Values">
</DxTagBox>

@code {
    IEnumerable<string> Tags = new List<string>() {
        "London",
        "New York"
    };

    IEnumerable<string> Cities = new List<string>() {
        "London",
        "Berlin",
        "Paris",
    };

    IEnumerable<string> Values;

    void TagsChanged(IEnumerable<string> newTags) {
        Tags = newTags;
    }
}
See Also