Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
720
How to collect multiple Selected items using combo box editor in MVVM
posted

Hi,

I am working on XAM combo editor and I have bind location with Combo editor. But we want that we can select multiple location at one time. and selected all location how we can get in ViewModel. Because Right now we have set Allow Multiple Selection property so, we are able to select multiple data items, but we are not able to get all selected data in View Model. I have set Multiple selected Items property but as i add then multiple selection does not work.

<ig:XamComboEditor IsEditable="True" Name="LocationComboBox" Grid.Row="1" Grid.Column="2" EmptyText="Select ..."  ItemsSource="{Binding Path=Locationdata}" SelectedValuePath="Location_Id" DisplayMemberPath="Location_Name" SelectedItem="{Binding SelectedLocation}" AllowMultipleSelection="True" IsSelectedMemberPath="Location_Name"  />

Please any help would be a appreciate.