Unplanned
Last Updated: 12 Apr 2024 16:04 by ADMIN
Gilbert
Created on: 28 Sep 2023 15:55
Category: Grid
Type: Bug Report
3
Hierarchical Grid inline edit exception on expanding the currently edited row - TelerikValidationComponent requires a cascading parameter of type EditContext

On Hierarchy grids with Inline edit mode, I noticed that if a row is currently being edited and I try to expand the row to show the child grid an exception is thrown: "Error: System.InvalidOperationException: TelerikValidationComponent requires a cascading parameter of type EditContext. You can use Telerik.Blazor.Components.TelerikValidationTooltip`1[System.String] inside a EditForm or TelerikForm".

The problem stems from a validation tool inside the Grid EditorTemplate.

2 comments
ADMIN
Dimo
Posted on: 12 Apr 2024 16:04

Hello everyone,

A possible workaround is to disable hierarchy expansion for the row in edit mode:

CSS

.k-grid-edit-row .k-hierarchy-cell {
    pointer-events: none;
}
.k-grid-edit-row .k-hierarchy-cell span {
    display: none;
}

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!
Celeste
Posted on: 09 Apr 2024 18:10
Is there any solution for this?