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

Time counter inside a RadGridView

4 Answers 160 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eyal Noam
Top achievements
Rank 1
Eyal Noam asked on 24 Jun 2010, 09:55 AM
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?

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Jun 2010, 10:06 AM
Hello,

 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
Yavor Georgiev
Telerik team
answered on 24 Jun 2010, 10:08 AM
Hi Shmuel Tal,

 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
Yavor Georgiev
Telerik team
answered on 29 Jun 2010, 10:33 AM
Hello Shmuel Tal,

 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
Tags
GridView
Asked by
Eyal Noam
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Yavor Georgiev
Telerik team
Eyal Noam
Top achievements
Rank 1
Share this question
or