AutoComplete custom format
This example of using the YUIAsp.Net AutoComplete control uses the same data source as the Remote data example.
This time, a custom formatter is applied to the results. Besides the EnglishName of the Culture, also the NativeName is displayed for an item. Also, the text matched in the search is now highlighted.
Another thing to notice here is that the results box has a scrollbar. By default, the results box will have a height big enough to display all the results. In most cases, that's enough. But when you'll want to have a scrollbar, just use css to make the container have a fixed height.
You can customize the appearence of items in autocomplete by specifying a handler for the OnClientCustomFormat handler.
|