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

"Funnel" doesn't display when binding using converter

2 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ralph
Top achievements
Rank 1
Ralph asked on 14 May 2012, 09:51 AM
Hi,

we're using Q2 2011 & when using an IValueConverter to bind a GridViewDataColumn it seems as though IsFilterable is ignored. (The "funnel" doesn't show)

<telerik:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource MyConverter}}" IsFilterable="True"/>


Regards,
Ralph

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 14 May 2012, 10:00 AM
Hello,

The IValueConverter cannot and should not be used for filtering -- it is for display purposes only as described in this article. Please, read it to learn how filtering works.

"The DataMemberBinding IValueConverter and the DataFormatString of the column are used for UI purposes only. They can only change the appearance of data into something more user-friendly such as $ 2.22, but they do not play any role in the data engine. Filtering is always performed with raw data values."

And since you have bound your column to your entire business object (Path=.), which is not a filterable type, you don't see the filtering funnel. You can make your business object class filterable by following this article.

I hope this helps.

Regards,
Ross
the Telerik team

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

0
Ralph
Top achievements
Rank 1
answered on 14 May 2012, 10:36 AM
Ah! Thanks for the quick reply Ross.
Tags
GridView
Asked by
Ralph
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Ralph
Top achievements
Rank 1
Share this question
or