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

Elapsed Time Column

1 Answer 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 13 Jan 2012, 04:46 PM
I am using the GridView to display up to 1,000 rows of data.  I am required to provide an elapsed time column.  I have found a similar thread here:http://www.telerik.com/community/forums/silverlight/gridview/updating-column-periodically-with-current-timespan-now-created.aspx .
I had the same thought of utilizing a Dispatch Timer in my ViewModel and updating each item in the data bound ItemSource collection.  However; I must display this elapsed time by second versus minute.  Updating each Model each second cannot be the best way to handle this.  I do not see an event I can respond to which would provide me a collection of those rows being displayed.  I assume that internally the GridView has such a collection for performance reasons.  Is this collection exposed or is there some other mechanism I should use?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 16 Jan 2012, 10:20 AM
Hi Paul ,

RadGridView does not expose a collection of the visible items. However it uses UI virtualization mechanism which will render and manage only the items visible in the viewport. In this context I strongly believe that there is no problem to update all 1000 view models. RadGridView will process only the visible ones and will not lose any time with the rest of the items. In addition such approach would save many headaches with keeping data consistent when the user is scrolling vertically.

Kind regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Paul
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or