I have a comboboxfield in my xamdatagrid. I need it to allow for filtering and autocomplete of the bound records, but disallow free typing in the field.
I can achieve this behavior in the XamComboBox control like so:
<ig:XamComboEditor Name="cmbLabel" HorizontalAlignment="Left" Width="250" Margin="5" SelectionChanged="cmbLabel_SelectionChanged" AutoComplete="True" AllowFiltering="True" />
Can a similar thing be done to the comboboxfield?
Actual code for the XamComboEditor should be:
Hello Adam,
Thank you for posting to Infragistics Community!
I have been looking into your question and I can see that you are using the XamComboEditor (Input) control from the InfragisticsWPF.Controls.Editors.XamComboEditor.dll assembly.
The XamDataGrid’s ComboBoxField, however, has the xamComboEditor from the InfragisticsWPF.Editors assembly, whose API differs from the first combo. For instance, the InfragisticsWPF.Editors.XamXomboEditor does not have an Autocomplete property, however it does perform autocompletion on entering matching values. Additionally, it has a LimitToList property that is used to restrict the user input to drop-down items when set to “True”. This is similar to the default “Ignore” behavior on user input of the XamComboEditor (Input), which prevents users from typing free text.
Attached you will find a small sample with a XamDataGrid and a ComboBoxField which you can use for quick reference.
In conclusion, the two approaches may exhibit slight differences, however, this is expected as they are internally using different controls. Please, let me know of any other questions or concerns.
Best regards,Bozhidara PachilovaAssociate Software Developer
8422.XDGComboBoxField.zip