Hello, I am completely new to Blazor and not to mention Radzen, so do excuse me in the very likely even I am just missing something obvious here, but while I'm fumbling around trying to see how this code works, I seem unable to get the AutoComplete component to actually Autocomplete. The textinput box shows up and all, and I can type in it, there's just nothing for it to find, seemingly, and I can't find any errors anywhere to work with.
Here is the relevant code:
<div class="rz-p-12 rz-text-align-center">
<RadzenAutoComplete
FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
@bind-Value=@directorName
Data=@directors
TextProperty="@nameof(Director.Name)"
Style="width: 13rem"
InputAttributes="@(new Dictionary<string,object>(){ { "aria-label", "Director" }})"
/>
<RadzenText
TextStyle="TextStyle.Body2">Start typing e.g. France
@((MarkupString)(!string.IsNullOrEmpty(directorName)
? $", Value is: <strong>{directorName}</strong>"
: ""))
</RadzenText>
</div>
@code {
public class Director
{
public int Id;
public string Name;
}
private List<Director> directors;
private string directorName = string.Empty;
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
directors = new List<Director>
{
new Director {Id = 1, Name = "Robert Eggers"},
new Director {Id = 2, Name = "David Lynch"},
new Director {Id = 3, Name = "John Carpenter"}
};
}
}