This question is locked. New answers and comments are not allowed.
Hi,
I have a parent grid and a child one declared in the HierarchyChildTemplate. Both grids have ShowInsertRow set to true. If I click on the insert row panel in the inner grid and then click on the insert row panel in the parent grid, both rows go to an endless refreshing process and start flickering showing validation error signs...
Update: here is how I workarounded the issue:
I have a parent grid and a child one declared in the HierarchyChildTemplate. Both grids have ShowInsertRow set to true. If I click on the insert row panel in the inner grid and then click on the insert row panel in the parent grid, both rows go to an endless refreshing process and start flickering showing validation error signs...
Update: here is how I workarounded the issue:
void
GridView_AddingNewDataItem(
object
sender, GridViewAddingNewEventArgs e)
{
var grid = e.OwnerGridViewItemsControl;
if
(grid.Name ==
"parentGridView"
)
{
var childGrid = grid.ChildrenOfType<RadGridView>().Where(g => g.Name ==
"childGridView"
).SingleOrDefault();
if
(childGrid !=
null
&& childGrid.RowInEditMode
is
GridViewNewRow) childGrid.CancelEdit();
}
else
if
(parentGridView.RowInEditMode
is
GridViewNewRow) parentGridView.CancelEdit();
}