Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
12480
Autocomplete source in TextEditor
posted

A customer recently asked me how to get autocomplete functionality using the TextEditor. Microsoft's TextBox has this feature, so the customer was understandably confused as to why the Infragistics TextEditor didn't support it.

The reason that TextEditors don't have this functionality is because you can achieve exactly the same behavior using a ComboEditor. Simply bind the ComboEditor to your data source normally, set up the autocomplete mode, and hide the drop down button.

ultraComboEditor1.DataSource = ultraDataSource1;
ultraComboEditor1.DataMember = "Band 0";
ultraComboEditor1.AutoCompleteMode = Infragistics.Win.
AutoCompleteMode.SuggestAppend;
ultraComboEditor1.DropDownButtonDisplayStyle = Infragistics.Win.
ButtonDisplayStyle.Never;