Completed
Last Updated: 10 Nov 2022 15:38 by ADMIN
Release 4.0.0
Mikhail
Created on: 23 Sep 2022 07:46
Category: ComboBox
Type: Bug Report
0
ComboBox: [WinUI] Exception when setting SelectedItem and using static data

When setting SelectedItem and using static data for the ItemsSource, Layout cycle detected. Layout could not complete exception is thrown
Setup:

<telerik:RadComboBox x:Name="ComboBox" 
                                 SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
                <telerik:RadComboBox.ItemsSource>
                    <x:Array Type="{x:Type x:String}">
                        <x:String>USA</x:String>
                        <x:String>Uganda</x:String>
                        <x:String>Ukraine</x:String>
                        <x:String>Canada</x:String>
                        <x:String>France</x:String>
                        <x:String>Italy</x:String>
                        <x:String>United Kingdom</x:String>
                        <x:String>China</x:String>
                        <x:String>Japan</x:String>
                    </x:Array>
                </telerik:RadComboBox.ItemsSource>
            </telerik:RadComboBox>

0 comments