Hi,
I am looking for a Smart Combobox with InteliSense where when we type first few characters then it should dispaly the list which start with those characters also allowing to add new values to this list in the ComboBox (if that item not present ).
Do Infragistics has such ComboBox ? Appreciate your quick response.
Regards,
Prakash.G
Yes we got the xamComboEditor with custom filters , then this worked. Thanks a lot Prakash.G
Hello Prakash,
I have looked through this and I suppose you have use the code from the Silverlight online samples and this behavior is expected. This is why I had suggested looking for the sample in the “WPF Feature Browser under “Specify a Custom Filter” “ , or in the online documentation for WFP.
If this is not the case please explain in more details what exactly have you downloaded so I can further look into this issue.
Looking forward to hearing from you.
Downlaoded the code but we are using as WPF app & we are getting compilation error ? Is this works only for SilverLight apps ? As sadi we need this for WPF app..
Error ::
Infragistcs.Collections.CollectionBase<Infragistics.IFilterCondition>.Add(Infragistcis.IFilterCOndition) has some Invalid arguemnts
cannot convert Infragistics.Windows.Controls.CompariosionCondition to Infragistics.IFilterCondition
---
Pl help.
I have been looking into your issue and in order to get the desired functionality you can use our cross-platform XamComboEditors: http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=DP_xamComboEditor_Adding_xamComboEditor_to_Your_Application.html. You can also see the how the drop down list is filtered in the WPF Feature Browser under “Specify a Custom Filter” or in the Silverlight’s online sample browser: http://samples.infragistics.com/sllob/RunSamples.aspx?cn=editors#/editors/specify-a-custom-filter-for-combo-editor
Regarding adding items to the collection in runtime, there is no built-in functionality, however you can achieve it e.g. through the KeyDown event like so:
private void xamComboEditor2_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.LeftCtrl)
Infragistics.Controls.Editors.XamComboEditor editor = sender as Infragistics.Controls.Editors.XamComboEditor;
TextBox temp = Utilities.GetDescendantFromType(editor, typeof(TextBox), true) as TextBox;
(editor.ItemsSource as ObservableCollection<Person>).Add(new Person() { Name = double.Parse( temp.Text)});
}
Please let me know if I can be of any further assistance on the matter.