Hello,
I want to use the WebCombo to implement the autocomplete feature. The list of possible values is huge (millions of words), so I can only load a small set of data while the user types the data in the combobox.
The logic to build the DataSet to be displayed is custom, which means I have to pass the search string and the max number of elements to return and my logic returns a DataSet containing words starting with the search string. I guess the webcombo has to make an out of band call to the server so that my logic runs, a new DataSet is generated and the list is updated on the client.
Can you show me an example on how to do this?
Thanks.
I believe a good place to start is the online samples framework located here:
http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htm
and then navigating to the Ajax -> WebCombo examples. There are 6 examples demonstrating autocomplete with Ajax with full source code - hopefully they will help you get started with the product.
Thanks for the answer Rumen,
I looked into the AJAX Type Ahead - Suggest example. That example is using an AccessDataSource object. I don't have anything similar in my code. I have to generate the DataSet by calling some custom logic that recieves the string the user typed and returns a DataSet containing 20 words that start with the input parameter. That's what the WebCombo should bind to.
I haven't found any sample code considering that scenario. Any help is greatly appreciated.
I noticed you guys are doing exactly what I need on your samples browser. If you type something on the "Search" panel there's a short pause (I guess there's an AJAX call taking place) and then the list of related terms is displayed:
https://es.infragistics.com/samples/aspnet/drop-down/filtering-autocomplete
Can you give me some code snippets on how to implement that feature?