Hello all,
I have a problem with styles of XamComboEditor inside XamDataGrid. I'm using Infragistics for WPF version 15.1.20151.2008If I try to add XamComboEditor from "http://infragistics.com/Editors" there are compile errors saying:- Error The member "AllowMultipleSelection" is not recognized or is not accessible.- Error Cannot find the Style Property 'AllowMultipleSelection' on the type 'Infragistics.Windows.Editors.XamComboEditor'.- Error The member "CheckBoxVisibility" is not recognized or is not accessible.
On the other hand, if I use XamComboEditor from "http://schemas.infragistics.com/xaml" there is no compile time error, but there is a runtime error saying - FieldSettings.EditorType's must be set to a type that derives from ValueEditor. Parameter name: EditorTypeMaybe some reference is missing? These libraries are referenced in the project: InfragisticsWPF4.Controls.Editors.XamComboEditor.v15.1, InfragisticsWPF4.DataPresenter.v15.1, InfragisticsWPF4.Editors.v15.1, InfragisticsWPF4.v15.1
The Code looks like this:
<igDataPresenter:Field Name="AllItems" Label="Items"> <igDataPresenter:Field.Settings> <igDataPresenter:FieldSettings AllowEdit="True" EditorType="{x:Type igEditors:XamComboEditor}"> <igDataPresenter:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamComboEditor}"> <Setter Property="HorizontalAlignment" Value="Left"/> <Setter Property="AllowMultipleSelection" Value="True"/> <Setter Property="CheckBoxVisibility" Value="Visible"/>
Please advise.Thank you in advance!Jelena
Hello Jelena,
Thank you for posting!
I have been looking into your question. We have two XamComboEditors. The one is in the namespace Infragistics.Windows.Editors and the other is inside the Infragistics.Controls.Editors.
Currently only the XamComboEditor inside the Infragistics.Windows.Editor can be used inside the XamDataGrid. The properties of that XamComboEditor you can find on the following link from our documentation: http://help.infragistics.com/Help/Doc/WPF/2015.2/CLR4.0/html/InfragisticsWPF4.Editors.v15.2~Infragistics.Windows.Editors.XamComboEditor_members.html.
Please do not hesitate to let me know if you have any further questions on this matter.
Thank you for clarification.
Does this mean it's not possible to have multi selection of XamComboEditor items, in case it is used inside XamDataGrid? And if so, is there any other component that could be used to select multiple items? In this example, the field is an Enum Flag, so it should be possible to combine multiple items for a value of the Flag.
I have been looking into your question. What I can suggest is to take a look at the following link forum thread, where similar issue is discussed: http://www.infragistics.com/community/forums/t/86076.aspx. You would be able to find a sample application for this scenario in the forum thread as well.