I am following the example for the ValueChanged event with setting an initial value and it does not work.
I get the error that ValueExpression is required. I try putting that in, but now when I click on the numeric textbox,
Below is the code in your documentation for the example
from the handler: @result
<
br
/>
from model: @theTbValue
<
br
/>
<
TelerikNumericTextBox
Value
=
"@theTbValue"
ValueChanged="@( (decimal v) => MyValueChangeHandler(v) )"></
TelerikNumericTextBox
>
@code {
string result;
decimal theTbValue { get; set; } = 1.2345m;
private void MyValueChangeHandler(decimal 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;
}
}