Can some one please show me the equivalent xaml for the XamComboEditor based on the MS ComboBox xaml below? The MS version works great. I'm new to WPF and am a bit lost in all the intricacies of data binding.
Thanks!
<igEditors:XamComboEditor Grid.Row="1" Grid.Column="1" Margin="2" ItemsSource="{Binding Facilities}" DisplayMemberPath="Name" />
<!-- <ComboBox Grid.Row="1" Grid.Column="1" Name="c1ComboBoxFacilityID" Margin="2" ItemsSource="{Binding Facilities}" DisplayMemberPath="Name" SelectedValue="{Binding CurrentBatch.FacilityID}" SelectedValuePath="FacilityID" /> -->
Hello,
I believe that, rather than using SelectedValue and SelectedValuePath, you would use Value and ValuePath, respectively.
<igEditors:XamComboEditor Grid.Row="1" Grid.Column="1" Margin="2" ItemsSource="{Binding Facilities}" DisplayMemberPath="Name" Value="{Binding CurrentBatch.FacilityID}" ValuePath="FacilityID"/>
Please try this out and post back here is this does not work or you have further questions on this topic.
Thanks,
Hi,
ur answer is useful but i cant use this comboeditor name in xaml.cs page .how can i use that name in my cs page ?can u help me
Hi Deepalakshmi,
If, for example, you want to instantiate a XamComboEditor from the Shared XAML controls, your project needs to reference the followingassemblies (you can get the references also by dragging the control onto the design window then deleting it.):
InfragisticsWPF4.Controls.Editors.v11.2InfragisticsWPF4.DataManager.v11.2InfragisticsWPF4.v11.2
Your cs file will declare:
using Infragistics.Controls.Editors;
And a very simple set up could be something like:
XamComboEditor xce = new XamComboEditor(); xce.Height = 40; xce.Width = 200; this.LayoutRoot.Children.Add(xce);
I hope this answers your question.
<ig:TemplateColumn Key="Part_number" HeaderText="Part No"> <ig:TemplateColumn.EditorTemplate> <DataTemplate> <igEditors:XamComboEditor IsEditable="False" Name="comboBox1" Height="23" Width="150"> <igEditors:XamComboEditor.ValueConstraint> <igEditors:ValueConstraint/> </igEditors:XamComboEditor.ValueConstraint> </igEditors:XamComboEditor> </DataTemplate> </ig:TemplateColumn.EditorTemplate> </ig:TemplateColumn>
how to bind the itemsource through xaml.cs page and also i cant access this comboeditor name.
can anyone answer me .
Hello Deepalakshmi,
For this forum thread post I created CAS-90417-P36MXL. You can access the case at the support activity page: https://es.infragistics.com/Membership/MySupport.aspx.