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

[Solved] Have the FilterDescriptor changed in the last relase??? Lost properties (and more problems)!!

2 Answers 95 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.
Yolanda
Top achievements
Rank 1
Yolanda asked on 16 Dec 2010, 03:05 PM
I'm trying to create a programmatic filter descriptor as you explain here :

http://www.telerik.com/help/silverlight/radgridview-filtering-simple-filter-descriptors.html

I'm trying to do the same but the property "Member" have disapeared, I suppose it has been replaced by "PropertyPath", haven't it?
Supposing this, my code seems like that:
FilterDescriptor newFilter = new FilterDescriptor();
newFilter.PropertyPath = "Activite";
newFilter.Operator = FilterOperator.IsEqualTo;

Ok, perfect, and now I try to add the new filter to the grid.  radGridViewSimulations.FilterDescriptors.Add(newFilter);

According to the doc, it looked so simple until I saw the code  doesn't compile.  I receive a message saying something like that : "Erreur   2   Argument 1 : impossible to convert 'System.Windows.Controls.FilterDescriptor' in 'Telerik.Windows.Data.IFilterDescriptor'   [...]"  and
" Erreur   1  the better overriden method  is 'System.Collections.ObjectModel.Collection<Telerik.Windows.Data.IFilterDescriptor>.Add(Telerik.Windows.Data.IFilterDescriptor)' it has non-valid arguments [...] "
(translation done by myself)

What's happening? why documentation isn't up to date !?!?!

2 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 16 Dec 2010, 03:50 PM
Hi Yolanda,

No, the Member property is there.

Please make sure you are using the FilterDescriptor class from the Telerik.Windows.Data namespace, not the one from the System.Windows.Controls.DomainServices assembly.

Note that when you manually create filter descriptors in code, the ColumnFilterDescriptors is the recommended approach as it will update the filtering funnel that something has been filtered.


Greetings,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Yolanda
Top achievements
Rank 1
answered on 16 Dec 2010, 04:21 PM
Thanks for your fast answer ... good job!
Tags
GridView
Asked by
Yolanda
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Yolanda
Top achievements
Rank 1
Share this question
or