Hi Ozzie,
Greetings from Syncfusion support.
We suggest you to use the numeric value property as object type if you want to use two-way binding in the NumericTextbox. However, if you are using one-way binding, you can specify any type for Value property. Also, we are planning to provide particular types (int, decimal) in our upcoming release to value assets and this support will be included by the end of July 2019. We appreciate your patience until then.
Please find the code snippet for two-way bind below.
<p>NumericTextBox valus is: @NumericValue</p>
<EjsNumericTextBox @bind-Value="@NumericValue"></EjsNumericTextBox>
@code {
public object NumericValue { get; set; } = 10;
} |
We have prepared a sample and attached below.
Regards,
Berly B.C