Can't change textbox after bound value

I'm using Radzentextbox like below;

<RadzenTextBox Name="txtCred" @bind-Value="@credModel.CRED_NAME" />

in the code section, I'm retrieving data from database for editing purpose;

void LoadData(){
 using (OracleDataAdapter oda = new OracleDataAdapter("some query",cs)

credModel.CRED_NAME = dtCred.Rows[0][1].ToString();

However when i try to change value of the textbox it returns back to initial value. I can't edit it.

Tried to use 'Change' event etc.. but no luck.

What could be wrong?

Recording 2023-11-13 at 10.52.27

Most probably your method LoadData() is re-executed.

1 Like

Changed OnAfterRenderAsync to OnInitializedAsync and it worked :slight_smile: