Planned
Last Updated: 19 Jun 2025 13:28 by ADMIN
Scheduled for 2025 Q3 (Aug)
Lajos
Created on: 17 Jun 2025 11:58
Category: UI for Blazor
Type: Bug Report
1
Grid (Inline-Editing): Double tapping the add command button ignores validation

I have a grid with inline-edit mode where the items have data annotations validation enabled.
When I click the grid command button "add", and then without typing in anything submit in some way, the validation jumps in as it should.

However, if I - without providing more input and still in the same item's edit mode - just click the "add" button again and then submit the item again, the incomplete item is submitted without any further validation.

This is fatal for my purpose, and I can even reproduce the issue here on the Telerik website's example repl: Blazor Grid Editing Inline Editing - Telerik UI for Blazor (after turning off the option "Confirm Cancel Commands").

I would very much appreciate any guidance on how to circumvent that bug while it ist being worked on, since I couldn't yet find a way how to do it.
(As implied above, the confirmation prompt does prevent the bug, however I don't want to use a prompt if possible.)

Here's a list with some cases concerning this bug:
- tap add, submit => validation
- tap add, tap add, submit => submitted!
- tap add, submit (=> validation), tap add, submit => submitted!

Greetings to the team!

1 comment
ADMIN
Dimo
Posted on: 19 Jun 2025 13:28

Hi Lajos,

Thanks for the detailed description! Indeed, that behavior is not desired and I am awarding you some Telerik points for the report.

Perhaps the easiest workaround is to disable the Add button when the Grid enters Add mode:

https://blazorrepl.telerik.com/cJaqPjPm56B42btW52

The same idea applies to incell edit mode too, with the major difference that the Grid is never in "add" mode there, so you need the OnEdit event instead of OnAdd:

https://blazorrepl.telerik.com/GTagPjFd0277ZAiH18

In both cases, enable the Add button back in OnCreate / OnUpdate and OnCancel.

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.