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

[Solved] Sorting realtime data bug

1 Answer 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 22 Sep 2009, 10:03 AM
I am using the RadGridView to build a grid of realtime data.

I have a column DateAdded which I use to always show new data at top - sort can be set either manually or programatically to DateAdded in descending order.

However once the sort has been set, new records are added in correct date order, i.e. at top, but updated records whose current DateAdded should move them to the top of the grid do not move from their original positions.

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 25 Sep 2009, 07:02 AM
Hi Alex,

This happens when you update date from code behind right?
The problem for already existing records is when one of their properties is changed this action fires INotifyPropertyChanged and value of the property is updated, but this does not trigger INotifyCollectionChanged, and RadGridView is not updated properly. You have to ensure when any property is changed from code behind to call RadGridView.Rebind() method in order to refresh RadGridView. Hope this helps.

Sincerely yours,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Alex
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or