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.1.dll

Declaration

public List<TKey> TagValues { get; set; }
Public Property TagValues As List(Of TKey)

Property Value

Type Description
System.Collections.Generic.List<TKey>

A collection of predefined tags.

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.