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

RadComboBox with large data MVVM

0 Answers 53 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
moe
Top achievements
Rank 1
moe asked on 01 Mar 2019, 06:19 AM

Hello, 

I have this combobox with is bound to List of customers around 5k customers

<telerik:RadComboBox ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Clear Selection"
                                     ItemsSource="{Binding Customers}"  Margin="0 0 0 18"
                                     DisplayMemberPath="DisplayMember"
                                     SelectedValuePath="Id"
                                     SelectedValue="{Binding CustomerId,Mode=OneWay}"
                                     Command="{Binding GetCustomerCommand}">
                    <telerik:RadComboBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <VirtualizingStackPanel />
                        </ItemsPanelTemplate>
                    </telerik:RadComboBox.ItemsPanel>
</telerik:RadComboBox>

 

 

I changed to virtualization and this helped in getting the list faster but when I added SelectedValue to bind to my viewmodel It is getting very very slow to load.

Is there any way to overcome this problem ?

Regards

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
moe
Top achievements
Rank 1
Share this question
or