NumerikTextBox Validates on Minussign

1 Answer 9 Views
NumericTextBox
Fabian
Top achievements
Rank 1
Iron
Fabian asked on 04 Jun 2025, 09:40 AM

I have the following setup:

    <TelerikForm Model="@Item"
                 OnUpdate="@UpdateHandler"
                 ColumnSpacing="5px">

    <FormItems>
            <FormItem Field="value">
                <Template>
<TelerikNumericTextBox @bind-Value="@Item.Value"
                                           DebounceDelay="0"
                                           Arrows="false"
                                           ValidateOn="ValidationEvent.Change"/>
                </Template>
            </FormItem>
        </FormItems>
        <FormButtons/>
    </TelerikForm>

The value is a nullable thus the field is empty at first. If I start typing with a leading "-" (minus sign) it will validate (field turn red) and call the update method, which is contrary to what I expect due to the ValidateOn Change setting.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Jun 2025, 07:46 AM

Hi Fabian,

Thanks for reporting this behavior! I agree that it looks like a bug and a potential fix is already awaiting approval. Alas, I don't see an easy immediate workaround, except to change the Value type to non-nullable.

I also updated you Telerik points.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
NumericTextBox
Asked by
Fabian
Top achievements
Rank 1
Iron
Answers by
Dimo
Telerik team
Share this question
or