or
Hi,
I am trying to implement a loading spinner with the <TelerikAutoComplete> control.
I have overriden the <NoDataTemplate>
<p>@IsLoading</p>
<TelerikAutoComplete
@ref="@AutoCompleteControl"
Data="ActiveDataSet"
@bind-Value="SearchTerm"
DebounceDelay="500"
Placeholder="Search here..."
FilterOperator="StringFilterOperator.Contains"
ClearButton="true">
<NoDataTemplate>
@if (IsLoading)
{
<TelerikLoader Visible="true"
Size="@ThemeConstants.Loader.Size.Large"
ThemeColor="@ThemeConstants.Loader.ThemeColor.Tertiary"
Type="@LoaderType.ConvergingSpinner"/>
}
else
{
<p>No Data</p>
}
</NoDataTemplate>
</TelerikAutoComplete>
where I'm getting the data and updating my 'IsLoading'
private async Task Search(string searchTerm)
{
try
{
// Long running search that updates the data
}
finally
{
IsLoading = false;
StateHasChanged();
// AutoCompleteControl.Rebind(); // Without this the loading spinner never goes away
}
}
If I don't include the AutoCompleteControl.Rebind(); the loading indicator never goes away, despite the Data being updated and IsLoading being set to false.
Is there something I'm missing about how to update the binding inside the <NoDataTemplate>?
Thanks!
I recall being told I would have access to source code once I buy a licence.
Now that I have a licence, how do I get access to the source so I can do a local build?