Completed
Last Updated: 19 Dec 2025 14:52 by ADMIN
Lukas
Created on: 19 Dec 2025 13:54
Category: Grid
Type: Bug Report
0
Bug in the Example for Custom Grid Popup Edit Form

On the bright side, I don't have to write a repro code sample for this issue since this is present in the example on https://www.telerik.com/blazor-ui/documentation/components/grid/templates/popup-form-template#example

  1. Open the edit popup for any item and close the window with the "x" in the top right
  2. Now click the button to add a new item

The popup for adding a new item now shows the values of the previously edited item. The same goes for editing any other item. As long as the popup is closed with the "x" in the top right, the edit context remains.

The Problem relates to the ExitGridEditMode method and when it is and isn't called. Specifically, it is not called when the edit popup is closed with the close button in the top right of the window. I have also not found any way to get notified about the edit popup being closed with the close button. The Grid contains a hard-coded <TelerikWindow> and there doesn't appear to be a way to influence this window action or any events that it triggers.

2 comments
ADMIN
Dimo
Posted on: 19 Dec 2025 14:52

Hi Lukas,

Thanks for reporting! The fix is already deploying and I awarded you some Telerik points.

I'd like to revisit this example again, but this will happen after the holidays.

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.

Lukas
Posted on: 19 Dec 2025 14:09

My Solution for this problem is currently to change the condition for assigning the edit item in the form template from

if (GridEditItem is null)

to

if (GridEditItem != formContext.Item)

That means that the ExitGridEditMode is ... kinda pointless I guess.