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
205
Multi Select Combo Box Having Check Boxes
posted

Hi All,

My Requirement is - I need to create Multi select combo box. Each value of combo box should have a check box. And, the options for which check boxes are checked should be stored as comma separated string.

What I have created -

<igEditors:XamComboEditor IsEditable="False" Grid.Row="1" Grid.Column="4" 
ItemsSource="{Binding Path=OrganizationList}">
    <igEditors:XamComboEditor.ComboBoxStyle>
        <Style TargetType="{x:Type ComboBox}">
            <Setter Property="ItemTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <CheckBox Name="chbx" 
IsChecked="{Binding Path=IsChecked}"  Content="{Binding Path=Name}" 
VerticalAlignment="Center"  />
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </igEditors:XamComboEditor.ComboBoxStyle>
</igEditors:XamComboEditor>
The OrganizationList is of type IList<IMultiSelectComboViewModel> and
 IMultiSelectComboViewModel contains 3 properties Id, Name, IsChecked.
This is working fine when I select checkbox in drop down. However, When I click
on a TEXT in drop down instead of checkbox following issue occurs-
 


Please help.

Regards,
Nirmit Garg
Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Nirmit,

     

    Thank you for your post. I have been looking into it and I can suggest you use the XamComboEditor ported from Silverlight, which has built-in functionality for Multiple selection using checkboxes. You can see how to use it in the Feature Browser under XamComboEditor / Editing and Selection / Selectable xamComboEditor section. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

Children