We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AutoComplete - Customization

Thread ID:

Created:

Updated:

Platform:

Replies:

42046 Mar 17,2006 04:13 PM UTC Mar 22,2006 10:42 AM UTC WinForms 2
loading
Tags: Tools
Badri Rajani Kanth
Asked On March 17, 2006 04:13 PM UTC

Hi, We want to use history of AutoComplete tool and display in some other list box. I mean, AutoComplete will be attached to textbox, history of textbox should be stored. I think we can get history items using GetItemArray() method. But we dont want to show AutoSuggest dropdown. Instead we will display history in some other dropdown. Is it possible to do this? I mean, supressing dropdown etc.. Rgds Rajani Kanth

Anupama Roy [Syncfusion]
Replied On March 20, 2006 02:36 PM UTC

Hi Rajani Kanth, You can handle BeforeAddItem event of AutoComplete and set the items of ListBox as shown below: private void autoComplete1_BeforeAddItem(object sender, Syncfusion.Windows.Forms.Tools.AutoCompleteAddItemCancelEventArgs args) { this.listBox1.Items.AddRange (args.RowItem.ItemArray ); } If you do not want the DropDownList in AutoSuggestMode or suppress the DropDown as you said,then you can set AutoCompleteModes to AutoAppend. this.autoComplete1.SetAutoComplete(this.textBox1, Syncfusion.Windows.Forms.Tools.AutoCompleteModes.AutoAppend); Please take a look at the sample attached and let me know if you need furthur assistance. Sample Thanks for your continued interest in Syncfusion products. Regards, Anu.

Badri Rajani Kanth
Replied On March 22, 2006 10:42 AM UTC

Cool Anu, Thank You Rajani Kanth

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;