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.
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.
<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 .
Fransis Sir,
Am waiting for ur reply can u give any solution. or how to overcome this prob? xamcomboeditor is this solution means how sir?
thanks
Hello Fransis Sir,
In my project i have xamgrid. 3 columns or cells in this grid . first cell i have combobox. in this combobox to select particular item means the remaining columns data ill fetch and assigned automatically if combobox is selectionchanged using tables . datas are fetch from sql table.my xaml are given below :
<ig:XamGrid HorizontalAlignment="Left" Margin="56,30,0,0" AutoGenerateColumns="False" CellEnteredEditMode="ManageRecipeStateGrid_CellEnteredEditMode " VerticalAlignment="Top" Height="212" Width="612" > <ig:XamGrid.Columns> <ig:ComboBoxColumn Key="Sub_Category_Code" DisplayMemberPath="Sub_Category_Code" x:Name="subcode" AllowEditingValidation="True" SelectedValuePath="Sub_Category_Code" HeaderText="subcategorycode "/> <ig:TextColumn Key="Sub_Category_Name_EN" HeaderText="SubCategory name En "/> <ig:TextColumn Key="Sub_Category_Name_AR" HeaderText="SubCategory name Ar"/> </ig:XamGrid.Columns> </ig:XamGrid>
i cant get comboboxselectionchanged event and combobox.selecteditem property.
pls can u solve my problem.
thank u so much sir.i ill try that codings.