Documentation suggest a lamba expression in ValueChanged event because it's requiered by framewoek, but for me this sentences are equivalent:
from the handler: @result
<
br
/>
from model: @theTbValue
<
br
/>
<
TelerikTextBox ValueChanged="@( (string s) => MyValueChangeHandler(s) )" Value="@theTbValue"></
TelerikTextBox>
<
TelerikTextBox
ValueChanged
=
"@MyValueChangeHandler"
Value
=
"@theTbValue"
></
TelerikTextBox
>
@code {
string result;
public string theTbValue { get; set; } = "lorem ipsum";
private void MyValueChangeHandler (string theUserInput)
{
result = string.Format("The user entered: {0}", theUserInput);
//you have to update the model manually because handling the ValueChanged event does not let you use @bind-Value
theTbValue = theUserInput;
}
}