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
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.
Hi Steve,
I was aware that multi select option is available in Silverlight XamComboEditor. But we are not using only WPF control in our application. So, I need to implement this functionality using WPF control only.
Please let me know if you need any further information.
Thanks for your help!
Correction - **we are using only WPF control in our application**
Hello,
The control is crossplatform and it can be used in both Silverlight and WPF.
Could you please provide me some sample project with Silverlight Multiselect Combo in WPF application for reference?
The checked values should be stored as comma separated text.
You can find a sample in the Feature Browser under xamComboEditor / Editing and Selection / Selectable xamComboEditor section, where the bottom most editor is the one, which shows the functionality you want.
Hope this helps you.
The selecteditems property is not a dependencyproperty so you can't data bind to it.
This is SO limiting!!!
I have logged this with development under ID: 117433 and I have also created a support ticket on your behalf: CAS-96396-1Z562L and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
Hi,
First of all I could not figure out "How to post a new query" in your website. Hence I am replying to this existing post. Can you tell me how to create a new post in the forum?
My query is:
I have a multiselect combo
=======================
<ig:XamComboEditor ItemsSource="{Binding Books}" IsDropDownOpen="False" AllowMultipleSelection="True" CheckBoxVisibility="Visible" HorizontalAlignment="Left" VerticalAlignment="Top" IsEditable="True" IsEnabled="True" Name="BooksCombo" />==========================
Problem is if user types in with comma seperation and presses {Enter} all the old values get wiped off and the last typed value is selected. Is this a bug? any workarounds?
The XamComboEditor has a SelectedItems Property which is collection with the SelectedItems. Also you can use the following code to select an item:
xamComboEditor1.Items[0].IsSelected = true;
Thanks for your reply!
I have few questions in this control-
Can I get SelectedItems of the combo box in some ViewModel property?
Can I check the checkboxes automatically on the basis of some property?
Regards.