AutoComplete - Customization

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

2 Replies

AR Anupama Roy Syncfusion Team 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.


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

Cool Anu, Thank You Rajani Kanth

Loader.
Up arrow icon