Articles in this section
Category / Section

How to display AutoComplete popup upon demand?

1 min read

Normally, the AutoComplete control popup is displayed upon user input in its Target control. It is also possible to display the AutoComplete popup programmatically, by using its function, ProcessAutoComplete.

The following code example demonstrates the same.

 

C#

//Sets the AutoComplete Mode as suggestion.
this.autoComplete1.SetAutoComplete(this.textBoxExt2, Syncfusion.Windows.Forms.Tools.AutoCompleteModes.AutoSuggest);
//Sets the focus on TextBoxExt.
this.autoComplete1.ActiveFocusControl = this.textBoxExt2;
//Shows the autoCompletePopup.
this.autoComplete1.ProcessAutoComplete(this.textBoxExt2.Text, string.Empty, Point.Empty);

 

VB

'Sets the AutoComplete Mode as suggestion.
Me.autoComplete1.SetAutoComplete(Me.textBoxExt2, Syncfusion.Windows.Forms.Tools.AutoCompleteModes.AutoSuggest)
'Sets the focus on TextBoxExt.
Me.autoComplete1.ActiveFocusControl = Me.textBoxExt2
'Shows the autoCompletePopup.
Me.autoComplete1.ProcessAutoComplete(Me.textBoxExt2.Text, String.Empty, Point.Empty)

 

Note:

When AutoComplete mode is set to disabled, the AutoComplete process is stopped.

 

AutoComplete popup not applied to ButtonEdit

Figure 1: AutoComplete popup not applied to ButtonEdit

AutoComplete popup on ButtonEdit by click child button

Figure 2: AutoComplete popup on ButtonEdit on clicking the ButtonEditChild button

Sample Links:

C#: ButtonEditAutoComplete_C#

VB: ButtonEditAutoComplete_VB

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied