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

Can RadGridView filter to be synchronized with ICollectionView?

7 Answers 119 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 09 Mar 2012, 03:02 PM
In http://www.telerik.com/help/silverlight/gridview-sorting-programmatic.html said that sortin is automatically synchronize.
Is there a way to synchronize filter with ICollectionView?

7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Mar 2012, 03:04 PM
Hi,

Since the grid filtering is very complex compared to plain predicate in ICollectionView this cannot be achieved. 

All the best,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Alex
Top achievements
Rank 1
answered on 09 Mar 2012, 03:12 PM
Is there any sense in binding RadGridView.ItemsSource to CollectionView in this case?
0
Accepted
Vlad
Telerik team
answered on 09 Mar 2012, 03:13 PM
Hi,

 You can use our QueryableCollectionView instead plain ICollectionView for better integration. 

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Alex
Top achievements
Rank 1
answered on 09 Mar 2012, 03:58 PM
Thanks, your answer are very helpful for me.
0
Alex
Top achievements
Rank 1
answered on 09 Mar 2012, 04:51 PM
How i can add filter to QuerableCollectionView that UI filtering mechanism be affected?
I don't have access to radGridView control. Only to collection.
0
Rossen Hristov
Telerik team
answered on 09 Mar 2012, 05:00 PM
Hi,

You can do this:

QueryableCollectionView.FilterDescriptors.Add(new FilterDescriptor("Name", FilterOperator.IsEqualTo, "John")));

But the grid has no way of knowing about this and updating its filtering UI.

If you want to filter programmatically and the UI to understand this and update itself, check out this example.

All the best,
Ross
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Alex
Top achievements
Rank 1
answered on 09 Mar 2012, 05:17 PM
I don't have access to radGridView control. Only to collection.   
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Alex
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or