Skip to main content

BootstrapTagBoxValues<TKey>.TagValues Property

Returns a collection of predefined tags (values that an end-user can select from a Tag Box list).

Namespace: DevExpress.AspNetCore.Bootstrap

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public List<TKey> TagValues { get; set; }

Property Value

Type Description
List<TKey>

A collection of predefined tags.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

The code below demonstrates this member in action.

 @model BootstrapTagBoxValues<int>

<form method="post">
    @(Html.DevExpress()
        .BootstrapTagBoxFor(m => m)
        .AllowCustomTags(true)
        .Items(items =>
        {
            items.Add()
              .Text("Item 1")
              .Value(1);
        }))
    <button type="submit" class="btn btn-primary">Submit</button>
</form>

For more information on the Tag Box control, refer to the Tag Box online demo.

See Also