Binding multiple selected to RadComboBox after getting the data not work
xaml code <telerik:RadComboBox ItemsSource="{Binding Skills}"
SelectedItem="{Binding SelectedSkillItems,Mode=TwoWay}"
Placeholder="Select Skills"
MaximumWidthRequest="{OnPlatform WinUI='300', MacCatalyst='300'}"
SelectionMode="Multiple"
IsDropDownClosedOnSelection="False"/>
public ObservableCollection<string> Skills { get; set; }
public ObservableCollection<string> SelectedSkillItems
{
get => selectedSkillItems;
set =>UpdateValue(ref selectedSkillItems, value);
}
Skills = new ObservableCollection<string>()
{
".NET MAUI",
"Xamarin",
"Blazor",
"WPF",
"WinUI",
"Fiddler",
"Sitefinity",
"Test Studio",
"Open Edge",
"Kinvey",
"DataRPM",
"Corticon"
};
SelectedSkillItems =new ObservableCollection<string>(new List<string>() { "Xamarin", "WPF" });
For multiple selection mode use the ComboBox.SelectedItems collection. Example is provided here: https://github.com/telerik/maui-samples/blob/5e0097e9c3410a14fb254d13e2d1c66ad33ceebf/Samples/SdkBrowser/Examples/ComboBoxControl/FeaturesCategory/SelectionExample/Selection.xaml#L39
The SelectedSkillItems property form the ViewModel must be bound to the Combobox.SelectedItems property, not to the SelectedItem.