I realize this thread has been inactive for a while but it seems the best place to re-hash this since is was not resolved based on the last post.
I have to agree with Hasse. The 'IsContainedIn' filter is not working as you describe it. I too have a series of the acceptable value for a given column I would like to display in the grid while hiding the the other rows. However, the values are not being found when using 'IsContainedIn'.
Per your example:
I have a grid with a column, "Type" with several available values like, "N,U,F,S,T,K"
The user should be able to select check boxes that will display only the desired types. Based on which check boxes are selected, my FilterDescriptors' value is created.
The user will select type N, U, and F, for example, and based on their selection I created a New FilterDescriptor such as
New Telerik.WinControls.Data.FilterDescriptor("Type", Telerik.WinControls.Data.FilterOperator.IsContainedIn, "N U F")
Based on your description and I would expect a row with a value of N, U, or F to be visible in the grid. As you stated this would be compared as ("N U F".Contains("N")) which is a True statement, for the "Type" column with a value of "N", and therefore should be visible .
Examples from my immediate window:
?"N U F".Contains("N")
Whereas, if the Descriptor were:
"N U F"
The compare logic would compare "N".Contains("N U F"), which is obviously False
That being said the logic does not seem to work. No Data is visible when using 'IsContainedIn' and using a string of valid values. I have tried a solid string of chars (no white space), CSV, and white space delimiters, just to make sure.
Are there issues when only using a single char as part of the compare? Or am I not understanding how this compare is supposed to be working? Any help would be greatly appreciated.
I am working with Q2 from 2011
As a sidenote I know the grid is working and other filters for the same column do work and show valid results