Hi,
multi-column combo is a very useful control, as i need, it has a functionality of "clear all selection" (in multi selection view) which de-select all selected values, i would like to know is there any functionality of "select all" as well.? or how can we achieve this..?
Kindly suggest ...
Thanks
Ashish Gupta
Hello Ashish,
I have been looking into your requirement and I created a sample project for you with the functionality you want. Basically I created a Template for the RowSelectionCheckBoxHeaderCellControl and add a CheckBox there for SelectAll. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thanks Stefan, this is exactly what i am looking for.. Thank you so much .. :-)
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan, i got stuck in one thing, actually i am binding "multicolumncombo" through MVVM, so what i did is..
<
igSchema:XamMultiColumnComboEditor x:Name="xamMultiColumnComboEditor" Height="23" Width="140" Grid.Column="3" Grid.Row="0" Margin="5" DisplayMemberPath="FirmName" AutoGenerateColumns="False" VerticalAlignment="Top" HorizontalAlignment="Center" SelectedItemsResetButtonVisibility="Visible" AllowMultipleSelection="True" CheckBoxVisibility="Visible" MultiSelectValueDelimiter="," ItemsSource="{Binding Path=ReferenceData.FirmInstanceList, Mode=OneWay}" AllowDropDownResizing="False">
<igSchema:XamMultiColumnComboEditor.Columns>
<igSchema:TextComboColumn Key="Firm.FirmCode" HeaderText="Firm Code"/> <igSchema:TextComboColumn Key="FirmName" HeaderText="Firm Name"/> </igSchema:XamMultiColumnComboEditor.Columns> </igSchema:XamMultiColumnComboEditor>
i created this control in my view and bind it with a List, populated in view model, now i have two questions..
1. How can i get selected item in my viewmodel..?
2. How can i implement "Selec All" functionality as i can't write any code in codebehind file .?
please suggest ...!!
Thank you so much
Ashish.
I have been looking into your requirement and I can say that the thing you would like to achieve cannot be done in MVVM whitout using any code behind as you want, so my suggestion is to use my previous approach that uses code behind, or if you want I would be glad to log a feature request for adding a “SelectAll” CheckBox in the XamMultiColumnComboEditor.
I have been looking into your requirement, but everything seems to work ok on my side. Could you please send me an isolated sample project, where this is reproduced, so I can investigate it further for you.
Hi Stefan,
okay i agree with this and now i m doing the same, but i got one more issue in SelectionChanged event, it fired twice everytime,
suppose i select a value, at the same time selection changed event fired, when i click at some other control on the same screen, selection changed event of this drop down fired again and it set the default value . .
i am not able to understand why its happening,, please help me out..