I've RagGridView with some string type columns, one datetime typed and two decimal typed.
When I put random string, there (in CreateFilterExpression) allways stay records with decimal value equal 0 (zero).
I managed, that convert any string in decimal columns to 0 and check for equality. How can I skip the bolded part? Filter implementation is from your examples.
_compositeFilterDesriptor.CreateFilterExpression(parameterExpression);
In example:
Filter value is: "dasdasddasdasd"
Expression is: (stringColumn1 contains dasdasddasdasd) OR (stringColumn2 contains dasdasddasdasd) OR (dateTimeColumn IsEqual 01-01-0000) OR (decimalColumn1 IsEqual 0) OR (decimalColumn2 IsEqual 0)
5 Answers, 1 is accepted
We are not really sure how you are performing this custom filtering and why are you doing it in the first place.
What example did you use as a template? We could not find a similar example in our online examples. What is the final goal that you want to achieve?
Can you please send us a small runnable dummy sample project that demonstrates what you are trying to achieve and explain your goal in greater details.
Thanks in advance.
Ross
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
If you do not want to perform filtering on certain columns, then you should remove the filter descriptors that are responsible for filtering these columns.
Please, read this article to understand how programmatic filtering works. You can implement any custom logic once you understand how programmatic filtering works.
Ross
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I guess that you did not even read the article I have sent you.
If you want custom logic, you will have to write some source code to perform that custom logic. That is up to you and goes beyond the scope of Telerik support.
Thank you for your understanding.
Ross
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>