Hi,
I have a XamComboEditor with checkbox with each item. I want a checkbox with SelectAll option, which selects all the checkbox's at one go, and fires a Command on the ViewModel.
Is there any such implementation within XamComboEditor?
Thanks,
VJ
I saw your post. I think the approarch you gave is a in particular approach and I want a generalized solution to this problem.
I want to use the same functionality at 10 places where I have used this ComboBox, so, according to your implementation, I have to define the style at 10 places, which is not the I want to implement it. I want the style of each comboBox to remain same and handled from a single place.
In MVVM, we dont use events, we use Commands. So, I cant play directly on the Control. I have to use some kind of binding to have this implemented.
The checkbox attached to this comboBox doesn't fire any command on ViewModel, so, no use of this checkbox. I have to template it and use my own checkbox.
I hope, I have made the situation more clear to you.
Hello VJ,
I am just checking have you been able to resolve your issue? If you still need any assistance on the matter do not hesitate to ask.
I have been looking into your post and I can suggest you change the default template of the XamComboEditor with adding a “Select all ” checkbox in the dropdown popup. You can find our default templates on your computer in the file C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\WPF\DefaultStyles\XamComboEditor\generic.xaml .
Furthermore you can used Checked/Unchecked events of the new Checkbox in order to select and unselect all items. For further reference please have a look at the attached sample that I created for you in order to demonstrate this possible approach.
If you need any further assistance on this matter, please do not hesitate to ask.