Hi,
I need to add a XamMultiColumnComboEditor. Can you tell me how to use it?
I am unable to load it in my application. I am using Infragidtics 14.1
Hello Venkata,
Thank you for your post. I have been looking into your question and to use the XamMultiColumnComboEditor in a WPF application you need the following assemblies added to your project:
InfragisticsWPF4.Controls.Editors.XamComboEditor.v14.1
InfragisticsWPF4.DataManager.v14.1
InfragisticsWPF4.v14.1
And the XamMultiColumnComboEditor is in the xmlns:ig=http://schemas.infragistics.com/xaml xml namespace mapping. You can read more details on how to use the XamMultiColumnComboEditor here: http://help.infragistics.com/Doc/WPF/current/CLR4.0/?page=xamMultiColumnComboEditor.html.
If you wish to use it as an editor for the XamDataGrid, you can create a custom control that derives from the ValueEditor, since the XamDataGrid allows only ValueEditor based control to be used as a Field editor, and use the XamMultiColumnComboEditor in the custom ValueEditor. I am attaching a sample application that shows how you can implement this approach.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
when the Itemsource of the Grid changes, it does not get reflected in the UI. Can suggestions as to y this is not working?
Regards,
Sagar
I am getting a error while trying to set the "ItemSource" for a XamMultiColumnComboEditor from a XamDataEditor. I have a seperate solution as suggested in the previous post of mine. i get the following error:
When i pass the ItemSource by a StaticResource defined in the Xaml in the following format,
<Setter Property="ItemSource" Value="{Binding Source={StaticResource ABC}, Path=OpRiskSeDropDown}"/>
, it works.
In my case, I have to set as follows,
<Setter Property="ItemSource" Value="{Binding Source={StaticResource OpRiskSeDropDown}, Path=Data}"/>
and this pukes the above exception. The exception is while trying to set the "SelectedItem" inside the OnCoerceValue(Object Value) method.
protected
override object OnCoerceValue(object val)
{
if (string.IsNullOrEmpty(SelectedValuePath) || ItemSource == null)
SelectedItem = val;
else
var querySource = ItemSource.Cast<object>();
var item = querySource.Where(obj => obj.GetType().GetProperty(SelectedValuePath).GetValue(obj, null).Equals(val)).FirstOrDefault();
if (item != null)
SelectedItem = item;
}
return base.OnCoerceValue(val);
In my project, i get the DataContext from a different file and need to use it.
P.S. : When i look at the value in the OnCoerceValue method inside the XamMultiComboEditor class file i have created, to set the ItemSource, the value is a garbage value. I am not sure, why this is not recognizing the correct path.
Any suggestions?
The ComboBox is editable or i can type data in the text box, can you tell me how can i disable it?