Function FocusAsync() using RadzenTextBox

Hi, someone use the function focusasync() using the referenze to an inputtext?
<RadzenTextBox Name="Name" Id="Name" @ref="RefName" ....

 RadzenTextBox RefName;
 await RefName.FocusAsync();

Hi @AndreaSpada,

The RadzenTextBox does not have a FocusAsync method at the moment. You can however try await RefName.Element.FocusAsync()


If I want to set focus to a RadzenTextBox when a dialog in a CRUD is open, would I set the code OnAfterRenderAsync? I tried this but a label on a Tab within which the textbox exists is getting focus. What am I doing wrong?

If a put the same code within a click event on a button, it's fine!!