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

GridView grouping and sorting working only sometimes

1 Answer 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 15 Oct 2015, 04:46 PM

Hi,

I'm experiencing a weird issue with grouping in the grid. The grid is bound to a QueryableCollectionView for which I programatically set one GroupDescriptor and one SortDescriptor. The problem is that, when the view is loaded (it's a UserControl) sometimes neither the grouping nor the sorting are applied. 

The order in code (if it matters) is:

1. Set the Items property (to which the grid is bound) to a QueryableCollectionView, which raises a PropertyChanged event.

2. Add a GroupDescriptor to the QueryableCollectionView

3. Add a SortDescriptor to the QueryableCollectionView

I also tried raising PropertyChanged after the steps, the same random behavior of it not working persists.

Any idea what I'm doing wrong?

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 19 Oct 2015, 10:08 AM
Hello Adrian,

I have tried reproducing the scenario you described but did not notice any issues when using the Sorting or Grouping with a GridView bound to a QueryableCollectionView. I am attaching the test project for your reference. Would you please confirm if there are any differences between your approach and mine. It would be great if you can provide me with a sample project from your side so I can get a more clear view of what could be causing the issue.

I am looking forward to your reply.

Regards,
Stefan Nenchev
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
Tags
GridView
Asked by
Ken
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or