Hi All,
I am using MVVM, and i load data on demand in XamComboEditor. I have done this goal but the problem is that when i type the text in XamComboEditor filtered record is displayed in XamComboEditor, but automatically record is selected who contain that character that i typed, even i did not select item from XamComboEditor. I just type the text to shown the matched record when user select any record from XamComboEditor than that selected record must display in XamComboEditor. Same behavior is shown in attached sample. I use Northwind data base for retrieving data.Nortwind Database Script is included in sample application.
1- I want to call only when user stop typing. Currently character by character database is hit. This is very overhead on database, and at the end system is crashed due to lots of connection opened.
2- Record must be displayed when user select any record from XamComboEditor instead of automatically matched record selected during text typing.
3- XamComboEditor is automatically opened when user start typing in it.
Regards
Sufyan
Hello,
i just found this topic, because i have a problem with a xcamboedotr used in a dynamically created field.
So the combobox is working; now i need to implement a "contains"-method.
I use something like this:
comboStyle1.Setters.Add(new Setter(Infragistics.Windows.Editors.XamComboEditor.ItemsSourceProperty, data[0])); comboStyle1.Setters.Add(new Setter(Infragistics.Windows.Editors.XamComboEditor.IsEditableProperty, true));
Is there something similiar for my requirement or is the following possible:
comboStyle1.Setters.Add(new Setter(Infragistics.Windows.Editors.XamComboEditor.ComboBoxStyleProperty, false));
Sincerely, Thorben
Hello Abu,
I am just checking if you require any further assistance on the matter.
Hi Abu,
It seems that this auto selection is due to the autocomplete feature of the XamComboEditor. In order to turn it off you can set the ‘IsTextSearchEnabled’ to “False” in the ComboBoxStyle :
<igEditors:XamComboEditor.ComboBoxStyle>
<Style TargetType="ComboBox">
<Setter Property="IsTextSearchEnabled" Value="False"/>
…
Let me know, if you need any further assistance on this matter.
In this screen shot user type "fr" than FRANR record is automatically selected and displayed in XamCombo and my cursor is goes to start, that i show it as a vertical red line. This automatically selection is my major problem.I want to stop that automatic selection, until user itself select any record.
Hi Yanko,
Thanks for your reply, when user type text in XamCombo matched record is filled in XamCombo. Suppose user type "f" in XamCombo than all records related to "f" is filled in XamCombo when user type next letter than those item who contain that first two letters is selected and displayed in XamCombo. I want to stop that automatic selection until user select itself. In screen shot user type "f" and when type second letter like "o" or "r" than first row is selected that i highlighted respectively. If the text is matched 2 to 3 letters than that record is selected automatically and displayed in XamCombo. I want to stop that automatic selection, record is not selected until user itself select record from XamCombo, and is there any logic to determine that user not typing in XamCombo, like few miliseconds if typing response is not made than call the function that fetch record from database. This behavior you observed in my sample application, kindly help me with new sample application or modified my sample.