Articles in this section
Category / Section

How to provide the ArrayList as data to the AutoCompleteTextBox control?

1 min read

 

The ProvideChoiceListOnCallBack event is used to provide user defined data to the control. [Applicable only in 2.0]

C#

protected void AutoCompleteTextBox1_ProvideChoiceListOnCallback(object sender, Syncfusion.Web.UI.WebControls.Tools.ACUserChoiceListEventArgs e)

{

ArrayList syncProducts = new ArrayList();

syncProducts.Add("Essential Calculate");

syncProducts.Add("Essential Chart");

syncProducts.Add("Essential Diagram");

syncProducts.Add("Essential Edit");

e.ChoiceList = syncProducts;

}

VB

Protected Sub AutoCompleteTextBox1_ProvideChoiceListOnCallback(ByVal sender As Object, ByVal e As Syncfusion.Web.UI.WebControls.Tools.ACUserChoiceListEventArgs)

syncProducts As ArrayList = New ArrayList()

syncProducts.Add("Essential Calculate")

syncProducts.Add("Essential Chart")

syncProducts.Add("Essential Diagram")

syncProducts.Add("Essential Edit")

e.ChoiceList = syncProducts

End Sub

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