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
1160
How to bind selectedItems in XAMComboEditor for multiple selection?
posted

HI,

We are using XAM Combo Editor having multiple selection.

<ig:XamComboEditor Name="ComissionsLocationCombo"  ItemsSource="{Binding Path= LocationdataComissions}" CheckBoxVisibility="Visible"  AllowMultipleSelection="True" Grid.Row="1" Grid.Column="1" EmptyText="Select ..."  
                                    SelectedValuePath="LocationId" DisplayMemberPath="LocationName" Height="40" Width="230" HorizontalAlignment="Left" SelectionChanged="ComissionsLocationCombo_SelectionChanged" KeyDown="ComissionsLocationCombo_KeyDown"
                                   SelectedItems="{Binding  SelectMultipleLocation, Mode=OneWay,UpdateSourceTrigger=PropertyChanged,NotifyOnSourceUpdated=True,
            NotifyOnTargetUpdated=True}">

In View Model Bind SelectMultipleLocation

  public void SelectLocations(object parameter)
       {

       }

But In ComboBox not going to check any Item.

Please help us

Thanks

Parents
  • 2151
    Offline posted

    Hello kanwar,

     

    Thank you for your post. I believe there is some issue with the “SelectMultipleLocation” property, but I am not sure, because its implementation is missing in the code snippet you are providing. I made a sample for you which demonstrates how to bind a grid to the xamComboEditor’s SelectedItems collection both directly and using the view model. Please look at the attached sample.

     

    If you require any further assistance, please do not hesitate to ask.

     

    Sincerely,

    Radko Kolev

    Infragistics Inc.

    www.infragistics.com/support

    XCE_MultiSelection.zip
Reply Children