Hi ,
In my application i am using webdropdown control to implement auto suggest text box. I bind the data from database in code behind like below
List<Employee> empList = empdbcall();wddemp.DataSource = empList ; wddemp.ValueField = "ID"; wddemp.TextField = "Name"; wddemp.DataBind();
and html
<ig:WebDropDown ID="wddemp" runat="server" Width="200px" CssClass="webDropDown" EnableAutoCompleteFirstMatch="false" AutoSelectOnMatch="false" TextField="Name" ValueField="id" EnableAutoFiltering="Server" EnableLoadOnDemand="true" LoadingItemsMessageText="Loading" AutoFilterQueryType="StartsWith" AutoFilterResultSize="15" AutoFilterSortOrder="Ascending" > <DropDownItemBinding TextField="Name" ValueField="id" />
The issue is when i enter letters it is making a server call but the list below is not getting refreshed.
The same implementation is working in the other simple web page . but it is not working in required page.
How can we debug what is the issue.
and also suggest what is the best option to implement auto suggest textbox.
The example above explains by creating a accessdatasource and assigning it to datasourceid.
But i am binding the dropdown with a List<empOject> empObject is a custom object. I am binding dropdown by assigning dropdown.datasource , dropdown.valuefield,dropdown.textfiled , and calling databind method.
By binding in the above manner I am unable to refresh the data after typing values in the dropdown box. I am binding for one time when page loads.
How can i fix this . first time it display 20 values as mentioned but when we type values it is not suggesting (it is not loading based on the typed values.)
Any help is greatly appreciated.
Thanks.
Hello,
Thank you for contacting us.
Below you can find online sample that is showing the Autocomplete functionality that comes build in to the WebDropDown control.
http://es.infragistics.com/samples/aspnet/drop-down/filtering-autocomplete
I hope that you can benefit from it in order to achieve your requirements.