Keep sorting when filling RadGridView with new rows

2 posts, 0 answers
  1. haagel
    haagel avatar
    52 posts
    Member since:
    Feb 2010

    Posted 22 Oct 2010 Link to this post

    I use a RadGridView to show data. The user is allowed to sort by any column by clicking it, using the built-in sorting feature. This works fine.


    The problem occurs when the rows in the gridview are replaced. The gridview is always filled with rows after the user has done a search. However, the new rows are not sorted in the specified way.



    The user does a search which fills the gridview with rows.

    The user clicks the header of column A to sort by that column.

    The user does a new search which fills the gridview with new  rows.

    The gridview now still indicates that is is sorted by column A, but the rows are NOT sorted in that way


    Is this a bug or "by design"? Is there any way to solve my problem?


    If no better solution exist, I was thinking that maybe I can manually tell the gridview to sort the rows according to its current sorting state after I have filled it with new rows. But I cannot find a way to do that neither...

  2. Vlad
    Vlad avatar
    11100 posts

    Posted 25 Oct 2010 Link to this post


     Can you post more info about your collection and how new items are added? Generally the grid can handle INotifyCollectionChanged and will resort itself. You can check for example this blog post for more info. 

    All the best,
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top