Hi,
I'm trying to implement a monitoring gridview that have a column of a time counter that increments in each second.
For now the only solution that i came up with is to do a DispatcherTimer initiating foreach that increment each object and then rebind the grid, which of course is an awful performance hit.
Any suggestions?
I'm trying to implement a monitoring gridview that have a column of a time counter that increments in each second.
For now the only solution that i came up with is to do a DispatcherTimer initiating foreach that increment each object and then rebind the grid, which of course is an awful performance hit.
Any suggestions?
4 Answers, 1 is accepted
0
Hello,
Vlad
the Telerik team
If your data item is INotifyPropertyChanged you can change only desired properties and the grid cells will be updated immediately.
Best wishes,Vlad
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
0
Hi Shmuel Tal,
Yavor Georgiev
the Telerik team
If your data model implements INotifyPropertyChanged, you won't need to call Rebind() on the grid. Every time your timer updates your data object, the GridView will refresh only that part of its UI that is affected by the change.
Greetings,Yavor Georgiev
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
0
Eyal Noam
Top achievements
Rank 1
answered on 24 Jun 2010, 12:54 PM
Excellent! now how do i catch the row and extracting the dataitem of the changed cell?
0
Hello Shmuel Tal,
Yavor Georgiev
the Telerik team
Could you please elaborate a bit more on your question? If your timer updates the data item, why would you need to get it when the cell for the property is changing?
Sincerely yours,Yavor Georgiev
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