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

GridView Virtualization

2 Answers 166 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tal
Top achievements
Rank 1
Tal asked on 09 Mar 2009, 05:46 PM
Hi,
is there a way to disable the virtualization?
I need to perform calculations on rows that don't exist in the virtualizing panel.

Thanks,
Tal

2 Answers, 1 is accepted

Sort by
0
Hristo Deshev
Telerik team
answered on 10 Mar 2009, 09:47 AM
Hello Tal,

The current official release does not allow that. We have modified the virtualization logic, so that it will realize all rows when placing the grid in a container with a Height of infinity to match the default behavior in other WPF controls. Starting with Q1 2009, which is to ship in a couple of days, you will be able to wrap the RadGridView in a StackPanel, and put that in a ScrollViewer control and achieve the behavior you desire.

On a side note, I am not really sure you should be performing calculations on your visual objects. I am speaking without much context, but your requirement looks like a prime candidate for a view model implementation that would do the calculations, expose the calculated values through public properties, and have your UI bind to those properties. More details on the Model-View-ViewModel pattern are available here.

Kind regards,
Hristo Deshev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tal
Top achievements
Rank 1
answered on 10 Mar 2009, 09:59 AM
Thank you for the reply Hristo.
I'll reconsider the solution.
Tags
GridView
Asked by
Tal
Top achievements
Rank 1
Answers by
Hristo Deshev
Telerik team
Tal
Top achievements
Rank 1
Share this question
or