How do you set focus on a RadzenNumeric

The RadzenNumeric component doesn't behave like a RadzenTextBox. For the life of me, I can't figure out how to set focus on the numeric box. I've tried using the onfocus event, but it just doesn't work. Is there a way to do this?


You use the FocusAsync method.

<RadzenNumeric @ref=@numerc @bind-Value="@value" />
@code {
    double value;
    RadzenNumeric<double> numeric;

   protected override async Task OnAfterRenderAsync(bool firstRender)
      if (firstRender)
          await numeric.FocusAsync();

That did the job. Thanks very much!!!