Hi Handi,
Greetings from Syncfusion support.
You can focus TextBox Component on the initial rendering. We noticed that you have tried to focusing TextBox before our Component rendering in DOM.
So, we suggest you to do focus in Created event of TextBox Component instead of OnAfterRender.
Code example:
|
<SfTextBox @ref="textboxObj" Placeholder='First Name' Created="onCreated"></SfTextBox>
@code{
SfTextBox textboxObj;
public void onCreated()
{
textboxObj.FocusIn();
}
} |
Kindly let us know if you need further assistance on this.
Regards,
Sevvandhi N