Hello,
I need to show multiple columns in ComboBoxField. For that I am trying to set datatemplate for comboBoxField.
<ig:ComboBoxField>
<ig:Field.Settings>
------------------------
<DataTemplate>
"How to show a grid with column names".
</DataTemplate>
</ig:Field.Settings>
</ig:ComboBoxField>
I have gone through the following link, Where we don't have column names.
https://ko.infragistics.com/help/wpf/xamgrid-comboboxcolumn-column
Hello Yugandhar,
The link that you have followed is for xamGrid not for XamDataGrid.
Could you confirm if you are using xamGrid or XamDataGrid?
In case you are using XamDataGrid you may find the link below useful in understanding xamMultiColumnComboEditor, which allows multiple columns inside the combo and has appearance similar to the grid:
https://ko.infragistics.com/help/wpf/xammulticolumncomboeditor
I am attaching a small sample, which demonstrates how the xamMultiColumnComboEditor could be set to a field. The data source of the combo is Observable collection, however instead of using ComboBoxField, TemplateField should be used since xamMultiColumnComboEditor doesn’t inherit from ValueEditor base class. The TempleteField allows you to provide both a DisplayTemplate and EditTemplate which can contain any control you want. If you add XamMultiColumnComboEditor to the field as DisplayTemplete you don’t need to set the edit template since an input control is present in the display template and edit mode will never be entered on that cell so the edit template will never display.
To learn more about TemplateField please visit the link below:
https://ko.infragistics.com/help/wpf/xamdatagrid-configuring-template-field
Please test the sample on your side and let me know how it behaves. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify it and send it back to me along with steps to reproduce.
Please let me know if you have any questions.
Regards, Ivan Kitanov
MultiComboInXamDataGrid.zip
How to apply filter on combo box based on selected item on another combo box
In order to achieve this the SelectionChanged event of the ComboBox needs to be handled. Then a custom item filter for the XamMultiColumnComboEditor needs to set based on what is selected inside the ComboBox, FilterMode can be set (either on the main column or on all columns) as well as the CustomItemFilter comparison condition.
To learn more about item filtering inside XamMultiColumnComboEditor please visit the link below, which describes the configuration of custom item filters in more details as well as providing sample code, which demonstrates how custom item filters can be configured.
https://ko.infragistics.com/help/wpf/xammulticee-configuring-item-filtering
Let me know if you have any questions.
Here is the sample. I am using xamcombofield. I need to update books field based on branch selection.
Initially books combo box field should be disabled. Based on branch selection books field should be enabled and populate the results based on branch selection.
WpfApp3.zip