Hi!
I have a filter with values set (via DistinctValuesLoading). There is a string property in the elements. Is there a way to use "Contains" when filtering elements.
I used a CustomFilteringControl:
var ids = this.distinctValuesListBox.SelectedItems.OfType<string>();
this.filterDescriptor = new FilterDescriptor<RowInfo>()
{
FilteringExpression = rowInfo => ids.Any(x => rowInfo.Name.Contains(x))
};
gridView.FilterDescriptors.Add(this.filterDescriptor);
It works. But I can't use RadGridView settings saving. And for each column (in different tables) where such mechanics will be used (unique values will be different) it will be necessary to create its own CustomFilteringControl and add it to ICustomPropertyProvider to save RadGridView settings.
Is there a way to set the filtering method to "Contains"?
Something like this:DistinctValuesSearchMode="Contains"