This question is locked. New answers and comments are not allowed.
Hi,
I'm running into performance issues with GridViewComboBoxColumn.
My scenario (fairly simple grid with 10 columns bound to view model properties):
The grid is slow to load, sort, filter, group and scroll (both vertically and horizontally). If I comment out the GridViewComboBoxColumns the grid becomes much quicker. Am I binding correctly with the GridViewComboBoxColumns? something about these controls is very inefficient.
Your help would be appreciated,
Phill
I'm running into performance issues with GridViewComboBoxColumn.
My scenario (fairly simple grid with 10 columns bound to view model properties):
<Grid> <Grid.Resources> <viewmodels:ViewModel x:Key="ViewModel" /> </Grid.Resources> <telerik:RadGridView x:Name="Grid" DataContext="{Binding Source={StaticResource ViewModel}}" ItemsSource="{Binding Collection}" AutoGenerateColumns="False" ShowGroupPanel="True" ShowInsertRow="True" ActionOnLostFocus="CancelEdit" EditTriggers="CellClick" IsSynchronizedWithCurrentItem="True" DistinctValuesLoading="DistinctValuesLoading" KeyUp="KeyUp" RowValidating="RowValidating" RowValidated="RowValidated" CellValidating="CellValidating" AddingNewDataItem="AddingNewDataItem" BeginningEdit="BeginningEdit" RowEditEnded="RowEditEnded" Filtering="Filtering"> <telerik:RadGridView.Columns> <telerik:GridViewComboBoxColumn Header="Col1"UniqueName="Col1" IsComboBoxEditable="True" DataMemberBinding="{Binding Property1.Id}" ItemsSourceBinding="{Binding Type1Collection, Source={StaticResource ViewModel}}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" /> <telerik:GridViewComboBoxColumn Header="Col2"UniqueName="Col2" IsComboBoxEditable="True" DataMemberBinding="{Binding Property2.Id}" ItemsSourceBinding="{Binding Type2Collection, Source={StaticResource ViewModel}}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" /> <telerik:GridViewDataColumn Header="Col3"UniqueName="Col3" DataMemberBinding="{Binding Property3}" /> <telerik:GridViewDataColumn Header="Col4"UniqueName="Col4" DataMemberBinding="{Binding Property4}" /> <telerik:GridViewDataColumn Header="Col5"UniqueName="Col5" DataMemberBinding="{Binding Property5}" /> <telerik:GridViewDataColumn Header="Col6"UniqueName="Col6" DataMemberBinding="{Binding Property6}" /> <telerik:GridViewDataColumn Header="Col7"UniqueName="Col7" DataMemberBinding="{Binding Property7}" /> <telerik:GridViewComboBoxColumn Header="Col8"UniqueName="Col8" IsComboBoxEditable="True" DataMemberBinding="{Binding Property8.Id}" ItemsSourceBinding="{Binding Type3Collection, Source={StaticResource ViewModel}}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" /> <telerik:GridViewComboBoxColumn Header="Col9"UniqueName="Col9" IsComboBoxEditable="True" DataMemberBinding="{Binding Property9.Id}" ItemsSourceBinding="{Binding Type4Collection, Source={StaticResource ViewModel}}" DisplayMemberPath="Name" SelectedValueMemberPath="Id" /> <telerik:GridViewDataColumn Header="Col10"UniqueName="Col10" DataMemberBinding="{Binding Property10}" /> </telerik:RadGridView.Columns> </telerik:RadGridView> </Grid>The grid is slow to load, sort, filter, group and scroll (both vertically and horizontally). If I comment out the GridViewComboBoxColumns the grid becomes much quicker. Am I binding correctly with the GridViewComboBoxColumns? something about these controls is very inefficient.
Your help would be appreciated,
Phill