I have a telerik RadGridView with a HierarchyChildTemplate to show a child grid when expanded. Now I would like to have only one item expanded at the same time. How should this be done? I can find options for WinForms but not for use in WPF.
I am using the HierarchyChildTemplate to show the grid as explained here
I tried implementing the "RowIsExpandedChanging" event, but don't know exactly what to do from there. I can do:
private void RowIsExpandedChanging_EventHandler(RowCancelEventArgs eventArgs)
{
eventArgs.Row.GridViewDataControl.CollapseAllHierarchyItems();
}
But this will cause a stack overflow because it will recursively call itself.
Any help is appreciated!