|
3 | 3 | A high-performance, AI-powered AutoComplete (TypeAhead) component for Blazor applications with semantic search, OData integration, and vector database support. Also known as: autosuggest, combobox, searchable dropdown, live search. |
4 | 4 |
|
5 | 5 | [](https://www.nuget.org/packages/EasyAppDev.Blazor.AutoComplete/) |
| 6 | +[](https://www.nuget.org/packages/EasyAppDev.Blazor.AutoComplete/) |
| 7 | +[](https://github.com/mashrulhaque/EasyAppDev.Blazor.AutoComplete) |
6 | 8 | [](https://opensource.org/licenses/MIT) |
7 | 9 | [](https://dotnet.microsoft.com/) |
8 | 10 |
|
9 | | -**[Live Demo](https://blazorautocomplete.easyappdev.com/)** | [NuGet Package](https://www.nuget.org/packages/EasyAppDev.Blazor.AutoComplete/) | [Documentation](#documentation) |
| 11 | +**[Live Demo](https://blazorautocomplete.easyappdev.com/)** | [NuGet Package](https://www.nuget.org/packages/EasyAppDev.Blazor.AutoComplete/) | [Get Started](#quick-start) |
| 12 | + |
| 13 | +<p align="center"> |
| 14 | + <img src="https://blazorautocomplete.easyappdev.com/images/demo-preview.gif" alt="Blazor AutoComplete Demo" width="600" /> |
| 15 | +</p> |
10 | 16 |
|
11 | 17 | --- |
12 | 18 |
|
@@ -65,6 +71,8 @@ A high-performance, AI-powered AutoComplete (TypeAhead) component for Blazor app |
65 | 71 | - [API Reference](#api-reference) |
66 | 72 | - [Packages](#packages) |
67 | 73 | - [Requirements](#requirements) |
| 74 | +- [Performance](#performance) |
| 75 | +- [Troubleshooting](#troubleshooting) |
68 | 76 | - [Support](#support) |
69 | 77 |
|
70 | 78 | --- |
@@ -320,7 +328,7 @@ Full control over rendering: |
320 | 328 | </HeaderTemplate> |
321 | 329 | <FooterTemplate> |
322 | 330 | <div class="dropdown-footer text-muted small"> |
323 | | - Showing @context.Count results |
| 331 | + Type to search products |
324 | 332 | </div> |
325 | 333 | </FooterTemplate> |
326 | 334 | </AutoComplete> |
@@ -1171,6 +1179,53 @@ public static class AutoCompleteConstants |
1171 | 1179 |
|
1172 | 1180 | --- |
1173 | 1181 |
|
| 1182 | +## Troubleshooting |
| 1183 | + |
| 1184 | +### Common Issues |
| 1185 | + |
| 1186 | +**Component not rendering / styles missing** |
| 1187 | +```html |
| 1188 | +<!-- Ensure CSS is added to App.razor or index.html --> |
| 1189 | +<link href="_content/EasyAppDev.Blazor.AutoComplete/styles/autocomplete.base.css" rel="stylesheet" /> |
| 1190 | +``` |
| 1191 | + |
| 1192 | +**Dropdown not opening** |
| 1193 | +- Check that `Items` or `DataSource` is not null/empty |
| 1194 | +- Verify `MinSearchLength` - default is 1 character before filtering |
| 1195 | + |
| 1196 | +**Items not filtering** |
| 1197 | +- Ensure `TextField` expression returns a non-null string |
| 1198 | +- Check `FilterStrategy` matches your use case (StartsWith vs Contains) |
| 1199 | + |
| 1200 | +**Virtualization not working** |
| 1201 | +- Set `Virtualize="true"` explicitly |
| 1202 | +- Ensure `ItemHeight` matches your actual item height in pixels |
| 1203 | +- Check that item count exceeds `VirtualizationThreshold` (default: 100) |
| 1204 | + |
| 1205 | +**OData requests failing** |
| 1206 | +- Verify `EndpointUrl` is correct and accessible |
| 1207 | +- Check CORS configuration on server |
| 1208 | +- Use browser DevTools Network tab to inspect generated OData queries |
| 1209 | + |
| 1210 | +**Semantic search returning no results** |
| 1211 | +- Lower `SimilarityThreshold` (try 0.1 instead of 0.15) |
| 1212 | +- Ensure `MinSearchLength` is met (default: 3 for AI) |
| 1213 | +- Verify OpenAI/Azure API key is valid |
| 1214 | +- Check browser console for API errors |
| 1215 | + |
| 1216 | +**AOT/Trimming build errors** |
| 1217 | +- Ensure you're using the latest package version |
| 1218 | +- The component is fully AOT-compatible; if issues persist, check for conflicts with other libraries |
| 1219 | + |
| 1220 | +### Performance Tips |
| 1221 | + |
| 1222 | +- Use `FilterStrategy.StartsWith` for fastest filtering |
| 1223 | +- Enable `Virtualize="true"` for datasets > 100 items |
| 1224 | +- Set appropriate `DebounceMs` (300-500ms) to reduce API calls |
| 1225 | +- For AI search, enable `PreWarmCache="true"` to pre-generate embeddings |
| 1226 | + |
| 1227 | +--- |
| 1228 | + |
1174 | 1229 | ## License |
1175 | 1230 |
|
1176 | 1231 | MIT License - see [LICENSE](LICENSE) |
|
0 commit comments