Running the latest 2013 version.
I read this:
http://www.telerik.com/help/wpf/radgridview-performance-tips-tricks.html
And it makes sense that a large dataset should be time consuming...
"Binding large dataset to the RadGridView is a time consuming task that can at times test the user’s patience."
I'm binding to 10 items and it takes 62 milliseconds (measured from DataLoading to DataLoaded). However, the control takes around a second to display the items. This makes no sense at all. I have bound to a simple data item with simple dependency properties:
<Window x:Class="Vironova.MiniTem.Views.MyTableWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="MyTableWindow" Height="700" Width="300">
<telerik:RadGridView x:Name="radGridView" Width="Auto" Height="Auto" AutoGenerateColumns="False" ItemsSource="{Binding MyViewModel.MyObjects}" SelectionMode="Multiple" DataLoadMode="Asynchronous">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding MyType}" Header="Type"/>
<telerik:GridViewDataColumn DataFormatString="F1" DataMemberBinding="{Binding Value}" Header="Value"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Window>
MyObjects is an ObservableCollection<>.
Also, when scrolling this list of items (setting the height to a lower value) it lags.
What could be causing this?
UPDATE: I just realized that all filter functions seem to clear the list. If I sort on the first column, the items go away. I then have to click two times until the sort arrow disappears - then the items are re-populated (after a second of wait).
I read this:
http://www.telerik.com/help/wpf/radgridview-performance-tips-tricks.html
And it makes sense that a large dataset should be time consuming...
"Binding large dataset to the RadGridView is a time consuming task that can at times test the user’s patience."
I'm binding to 10 items and it takes 62 milliseconds (measured from DataLoading to DataLoaded). However, the control takes around a second to display the items. This makes no sense at all. I have bound to a simple data item with simple dependency properties:
<Window x:Class="Vironova.MiniTem.Views.MyTableWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="MyTableWindow" Height="700" Width="300">
<telerik:RadGridView x:Name="radGridView" Width="Auto" Height="Auto" AutoGenerateColumns="False" ItemsSource="{Binding MyViewModel.MyObjects}" SelectionMode="Multiple" DataLoadMode="Asynchronous">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding MyType}" Header="Type"/>
<telerik:GridViewDataColumn DataFormatString="F1" DataMemberBinding="{Binding Value}" Header="Value"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
</Window>
MyObjects is an ObservableCollection<>.
Also, when scrolling this list of items (setting the height to a lower value) it lags.
What could be causing this?
UPDATE: I just realized that all filter functions seem to clear the list. If I sort on the first column, the items go away. I then have to click two times until the sort arrow disappears - then the items are re-populated (after a second of wait).