[Solved] Need a grid to have both InCell and InLine event triggers, how?

1 Answer 10 Views
Grid
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Rob asked on 03 Apr 2026, 08:43 PM

I have a situation where I need the:

EditMode="GridEditMode.Incell"

but I also need to have an event trigger when the row is updated:

EditMode="GridEditMode.Inline"

There is no mode that supports both, what are my options?

I need to be able to trigger some action on a Cell by Cell update basis, but also need to trigger a specific action on a Row update.

Thoughts?

Robl

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Apr 2026, 07:28 AM

Hi Rob,

When using in-cell edit mode:

  • There is no UI/UX concept for updating a row, because updates are made on a cell basis.
  • At the same time, the OnUpdate event fires for the whole row even though the user updated a cell. So, from developer perspective the concept is for row updates even though you see the update cell (Field) in the event arguments.

I assume that you need to detect when:

  • The user moves from one row to the next. Use the Grid OnEdit event and check if the Item property is different from the one in the last OnEdit execution.
  • The user exits edit mode completely. Use OnCancel, OnUpdate and/or OnStateChanged and assume an edit mode exit if OnEdit does not fire in a short timeframe afterwards.

You can also consider batch editing where the user must explicitly confirm they have finished editing.

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.

Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
commented on 06 Apr 2026, 03:10 PM | edited

I'm not sure how OnEdit with Item property would identify a row has changed? If I click on the same column but a row below and it that has the same value as the row above, then that wouldn't show as a change?  Unless you saying try to evaluate a index or key (which may not exist yet on a new row).

EDIT: In addition, I need to be able to prevent the row departure (aka args.IsCancelled) or cancel any changes they made to the row if they don't enter the required data for that row.

The issue is that I need to do specific validation on a row ONLY when they user attempts to move off the row.  But I also need to do some cell processing when a user navigates from cell to cell on the same row.  For example, I have two cells that are required but I don't want to keep hounding the user with validation error message on every cell update (aka OnUpdate when EditMode - InCell).  I only want to hound the user with error message when they attempt to move off the row or anywhere outside the grid ... basically force them to complete the required cells data entry or cancel out.

I am essentially doing batch editing, but I still need to manage when validation messages should appear, some need to appear when a row is exited and some need to appear when a cell is exited.

Tags
Grid
Asked by
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Answers by
Dimo
Telerik team
Share this question
or