This question is locked. New answers and comments are not allowed.
Hi,
I need a custom filter so that the user can enter in a few different words that will perform a "contains" lookup on the entire string. But by "contains", I don't mean the whole string. Please take the following cell data as an example. Below represents data from 2 cells for a detail column.
123 Main St. San Fransisco, CA, contact Joe
123 Main St. New York, NY, contact: Joe
So if the user enters "123 Joe", both of these records HAVE TO come up.
What is the best way to accomplish this? It seems that I need to create a custom FilterDescriptor and make use of it in a custom filter control that implements IFilteringControl. Am I on the right track?
Remember also that using the default FilterDescriptor, passing in FilterOperator.Contains to the constructor will NOT work. I actually need to parse the user entered string (delimited by spaces), and perform a contains for each substring against each cell value.
So in the above example, I need to do a split against "123 Joe". Then, I would check to see if one or both of those values is contained within the cells.
Thanks!
I need a custom filter so that the user can enter in a few different words that will perform a "contains" lookup on the entire string. But by "contains", I don't mean the whole string. Please take the following cell data as an example. Below represents data from 2 cells for a detail column.
123 Main St. San Fransisco, CA, contact Joe
123 Main St. New York, NY, contact: Joe
So if the user enters "123 Joe", both of these records HAVE TO come up.
What is the best way to accomplish this? It seems that I need to create a custom FilterDescriptor and make use of it in a custom filter control that implements IFilteringControl. Am I on the right track?
Remember also that using the default FilterDescriptor, passing in FilterOperator.Contains to the constructor will NOT work. I actually need to parse the user entered string (delimited by spaces), and perform a contains for each substring against each cell value.
So in the above example, I need to do a split against "123 Joe". Then, I would check to see if one or both of those values is contained within the cells.
Thanks!