What would you suggest is the best option for quickly editing hierarchical data that will have detail data with a different schema (different columns)?
The hierarchy grid with batch edit was the closest thing to what we need. But it doesn't work because the batch editing context for each grid is independent. Syncfusion support noted that the batch edit grid needs to be saved before the detail is collapsed, but we want the user to be able to edit any cell and save/update as a whole, not just one grid at a time. Also had issues with detail row not being able to expand or collapse when editing a row. See notes and attached code.
Hierarchy Grid with Batch Edit
We need the ability to maintain a batch edit across all nested grids, but the batch edit context (and the grid) gets reset once the nested grid is collapsed.
Attachment: Sprbrk.Demo_8bf1119a.7z
|
<GridTemplates>
<DetailTemplate Context="level1">
<SfGrid @ref="myComponents[id]" DataSource="row.Comments">
..
..
<GridTemplates>
private Dictionary<int, SfGrid<Comment>> myComponents = new Dictionary<int, SfGrid<Comment>>();
public async Task Save() {
await myComponents[id].EndEdit();
} |