Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

How to toggle grouping via MVVM binding?

$
0
0
Hi Brian,

You can filter the collection quite easily with the help of FilterDescriptors collection. For example:
private QueryableCollectionView clubs;
        public QueryableCollectionView Clubs
        {
            get
            {
                if (this.clubs == null)
                {
                    this.clubs = new QueryableCollectionView(Club.GetClubs());
                     
                    this.clubs.GroupDescriptors.Add(new GroupDescriptor() { Member = "Name", DisplayContent = "CustomName" });
                    this.clubs.FilterDescriptors.Add(new FilterDescriptor() { Member = "Name", Value = "Arsenal", Operator = FilterOperator.IsEqualTo });
                }
 
                return this.clubs;
            }
        }

In case you want to work with Filter property, you can create your own custom QCV and override it. 


Regards,
Maya
Telerik
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 Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 84751

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>