Back to Devexpress

DxTagBox<TData, TValue>.ValuesExpression Property

blazor-devexpress-dot-blazor-dot-dxtagbox-2-947809fc.md

latest2.5 KB
Original Source

DxTagBox<TData, TValue>.ValuesExpression Property

Specifies a lambda expression that identifies the Values property’s bound values when the Tag Box is placed in the EditForm.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public Expression<Func<IEnumerable<TValue>>> ValuesExpression { get; set; }

Property Value

TypeDescription
Expression<Func<IEnumerable<TValue>>>

A lambda expression that identifies bound values.

|

Remarks

The ValuesExpression property obtains metadata about values bound to the Values property. Is is used when you add the Tag Box editor to Blazor’s standard EditForm component to validate the Values property value.

You can use one of the following ways to set up this property:

  • If you specify Values and handle the ValuesChanged event, you also need to specify the ValuesExpression property.

  • If you use the @bind attribute for the Values property to implement two-way binding, you should not specify the ValuesExpression property, it is set internally.

The following exception occurs if you do not use two-way binding or the ValuesExpression property:

DevExpress.Blazor.DxTagBox requires a value for the ‘ValuesExpression’ property. It is specified automatically when you use two-way binding (‘bind-Value’).

See Also

DxTagBox<TData, TValue> Class

DxTagBox<TData, TValue> Members

DevExpress.Blazor Namespace