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

[Solved] Filter Descriptors and Binding

2 Answers 280 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.
Tomasz Wisniewski
Top achievements
Rank 1
Tomasz Wisniewski asked on 30 Aug 2010, 10:31 AM
hi,

I would like to use a filterdescriptor in my grid. I've tried to use this way:
<telerik:RadGridView.FilterDescriptors>
  <telerik:FilterDescriptor
    Member="NumerKonta"
    Operator="IsEqualTo"
   Value="{Binding SomeBinding}"/>
</telerik:RadGridView.FilterDescriptors>
SomeBinding is a property in my ViewModel. But unfortunatly I get an error saying that the IsEqualTo operator is not compatitable with String and Binding.

Any suggestions?

2 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 30 Aug 2010, 10:41 AM
Hi Tomasz Wisniewski,

 FilterDescriptor is not a DependencyObject and thus does not support binding. You can create an attached property for FilterDescriptor that supports binding, however.

All the best,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Wiktor
Top achievements
Rank 1
answered on 17 Jan 2011, 06:23 PM
Has this been changed yet? I see that the FilterDescriptor is a DependencyObject, but the binding still doesn't work for me.

edit: Actually, I was able to bind the FilterDescriptor.Value property to a static resource, which is good enough for me.
Tags
GridView
Asked by
Tomasz Wisniewski
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Wiktor
Top achievements
Rank 1
Share this question
or