Grid OnUpdate event not firing when EditMode is changed by parent form's Edit button

1 Answer 33 Views
Grid
Shawn
Top achievements
Rank 1
Shawn asked on 19 Mar 2024, 05:03 PM
I have a form with an edit button and a grid. The EditMode property of the grid is set to a reference variable named @GridEditModeValue which has an initial value on page load of GridEditMode.None. When I press the Edit button of the Form, in the OnClick handler I set @GridEditModeValue=GridEditMode.Incell. This allows me to click into the cells of the grid and make changes to their values, however when i click out of the cell to another part of the form or to click the Submit button of the form, the OnUpdate event doesn't seem to fire and the changes are lost. If I click into a different cell of the grid, the event does fire and the event handler is executed correctly. Is there any way to have this event fire when the cell loses focus in this case?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Mar 2024, 07:24 PM

Hello Shawn,

I think the Grid is not fully capable of changing its EditMode on the fly like this. I will consult the team and probably log a bug. In the meantime, please use another approach:

Another option is to hide and show the Grid when you toggle its EditMode parameter. This will recreate the component with the correct settings, but the user may see a flicker.

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
Grid
Asked by
Shawn
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or