Back to Devexpress

VirtualServerModeSource.GetUniqueValues Event

corelibraries-devexpress-dot-data-dot-virtualservermodesource-85e23cff.md

latest2.7 KB
Original Source

VirtualServerModeSource.GetUniqueValues Event

Allows you to provide values for columns’ filter dropdowns.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public event EventHandler<VirtualServerModeGetUniqueValuesEventArgs> GetUniqueValues
vb
Public Event GetUniqueValues As EventHandler(Of VirtualServerModeGetUniqueValuesEventArgs)

Event Data

The GetUniqueValues event's data class is VirtualServerModeGetUniqueValuesEventArgs. The following properties provide information specific to this event:

PropertyDescription
CancellationTokenGets a token that allows you to respond to a task cancellation request invoked by the grid control.
FilterExpressionGets the filter expression applied to the grid.
MaxCountGets the maximum number of filter values to return.
UniqueValuesTaskGets or sets the task that returns requested values.
ValuesExpressionGets or sets the expression that identifies the currently processed column. This can be a field name or an expression (for calculated columns).
ValuesPropertyNameGets the currently processed column name (field name), provided that this name can be unambiguously identified.

Remarks

If this event is not handled, the bound grid control obtains filter items itself by iterating through loaded records.

Tip

A Task typically executes asynchronously. To return filter values synchronously, create the task with the Task.FromResult method (available in .NET Framework 4.5+).

See Also

VirtualServerModeSource Class

VirtualServerModeSource Members

DevExpress.Data Namespace