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

GroupSortingExpression and changing the order of groups

1 Answer 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 22 Sep 2011, 09:42 AM
I have a RadGridView bound to some data, with grouping turned on.
The grouping is as follows

        _queryableCollectionView.GroupDescriptors.Add(new GroupDescriptor<RowGroupint>()
         {
            GroupingExpression = row=> row.Group,
            GroupSortingExpression = group => group.Key.Index
         });

If I change the Index on my group (which is hooked in to fire the INotifyPropertyChanged event) then the group ordering on screen stays the same unless I call refresh on the QueryableCollectionView. Unfortunately doing that takes several seconds with even a small data set (couple of dozen rows). 

Is there anything I'm missing that I need to have the GroupSortingExpression apply without my needing to explicitly refresh? The documentation is quite light for this feature......

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 23 Sep 2011, 02:00 PM
Hi Neil,

I am afraid that you can achieve this with Refresh only. We have to re-create our internal view in case like this.

Kind regards,
Ross
the Telerik team

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

Tags
GridView
Asked by
Neil
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or