Hi
I am using the Datagrid with Data Virtualization and I need to implement server side filtering.
So I added the "FilterRequested" command to get the information on how the user wants to filter. I then persist the filters in my viewmodel, clear all data in the datagrids itemsource, send a request to the server and refill the itemsource with the first <batchsize> of the filtered rows. All following requests to the server (e.g.. throug scolling) will use the persisted filter values (and I do the same for sorting). This kind of works so far.
My Problem: I have a column that represents a state in form of an enum. Out of the box I can only filter for distinct states that are in the grid right now, but there are potentially more states in rows that have not been loaded yet. Is there a way to override the distinct filter options with static ones (in my case all enum values)? Even if there is an override, it is probably not possible to figure out which values were selected, because the DistinctValuesFilterDescriptor that is delivered via the FilterRequestContext of the command just gives me all elements that would be left after the filter, not the values selected.
kind regards
Dominik