I find sometime xamComboEditor has different items number between ItemsSource and Items. I can't provider the data which I bind to ItemsSource. The scenario is I bind 4 item to ItemsSource but the Items only has one empty item. When I set SelectIndex as 2, it crash. I use 11.2 version.
xaml code is:
<ig:XamComboEditor Name="PropertyUnitComboBox" Width="70" ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=local:AFAMPropertyParameterControl},Path= PropertyUnits}" DisplayMemberPath="Name" Margin="10,0,0,0" IsEditable="True" AllowMultipleSelection="False" />
PropertyUnits is:
public IEnumerable PropertyUnits { get { return (IEnumerable)GetValue(PropertyUnitsProperty); } set { SetValue(PropertyUnitsProperty, value); } } public static readonly DependencyProperty PropertyUnitsProperty = DependencyProperty.Register("PropertyUnits", typeof(IEnumerable), typeof(AFAMPropertyParameterControl), new UIPropertyMetadata(null));
I do a simple project to reproduce my problem. I bind 3 strings to ig:XamComboEditor and select one. But I didn't see the selected item on the control. I use the build 11.2.20112.2046
Hello,
I have been looking into your issue and we provide two XamComboEditors controls in our NetAdvantage product for WPF : WPF Specific XamComboEditor and shared XamComboEditor. WPF Specific XamComboEditor is similar to the Microsoft ComboBox control as the big difference between them is the way in which you bind data to the control. The shared XamComboEditor is not an ItemControl and you cannot add items directly in XAML. It must be strictly bound to data. It is not extended version of the WPF Specific XamComboEditor.
For more information about them I can suggest you look through the following links from our online documentation :
http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=xamComboEditor.html
http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=DP_xamComboEditor.html
In your sample project you have added the .ddl files for the both controls. When I remove the files for the shared XamComboEditor, it seems that everything goes as expected and all items appears.
I am sending you a modified version of your project.
If you have any other questions on this matter, feel free to ask.
After some research the functionality that you are looking for has been determined to be a new product idea. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12050079.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
I am attaching a sample application(comboeditorsample.zip) including share XamComboEditor.
If you have any other questions on this matter, feel free to ask
You mean I need to use a class/interface and DisplayMemberPath to show them? I have similar problem. Could you give me a sample?
Hello deepadharshini,
Would you please explain how exactly you use XamComboEdior in XamGrid ?
Looking forward to hearing from you.