This is a migrated thread and some comments may be shown as answers.

Filtering RadGridView problem

5 Answers 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 27 Apr 2012, 04:38 PM
Hello!
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

Sort by
0
Rossen Hristov
Telerik team
answered on 30 Apr 2012, 08:53 AM
Hi,

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.

Greetings,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Paweł
Top achievements
Rank 1
answered on 30 Apr 2012, 11:05 AM
The example simply from WPF Controls Demos, http://demos.telerik.com/wpf/, RadGridView > Search As You Type
0
Rossen Hristov
Telerik team
answered on 30 Apr 2012, 11:18 AM
Hi,

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.

Regards,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Paweł
Top achievements
Rank 1
answered on 30 Apr 2012, 11:20 AM
But what if I want a filtering on all columns, but decimal columns are searched for "0" when I try to filter by any non-digit value?
0
Rossen Hristov
Telerik team
answered on 30 Apr 2012, 11:22 AM
Hello,

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.

Kind regards,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Paweł
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Paweł
Top achievements
Rank 1
Share this question
or