Good afternoon,
I have that component
<SfTextBox @bind-Value="ViewModel.ClassFiscal.EX"
Placeholder="EX"
FloatLabelType="FloatLabelType.Auto"
@attributes="HtmlAttributeEX"
Type="Syncfusion.Blazor.Inputs.InputType.Number"
>
</SfTextBox>
HtmlAttributeEX = new Dictionary<string, object>()
{
{"maxlength", "2" }
};
what I need is to bind a field with string data. But the textbox should accept only numbers. I tryied with a NumericTextBox but it didn't work.
If I use the above configuration, the textbox do accept only numbers but then it doesn't respetc the maxlength. If I take of Type="Syncfusion.Blazor.Inputs.InputType.Number" then it respects the maxlength. How can I fix that?
I also would like to hide the increase/decrease control that appears on the right side of the textbox.
Thank you in advance