GridView grouping and sorting working only sometimes

2 posts, 0 answers
  1. Ken
    Ken avatar
    104 posts
    Member since:
    Aug 2010

    Posted 15 Oct 2015 Link to this post


    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?

  2. Stefan Nenchev
    Stefan Nenchev avatar
    503 posts

    Posted 19 Oct 2015 Link to this post

    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.

    Stefan Nenchev
    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
Back to Top