-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
I have a Hierarchical TreeDataGrid.
If I set ShowColumnHeaders="False" the data in tree is not rendered until I scroll. I can expand and collapse nodes but no text is displayed.
If I set ShowColumnHeaders="True" everything is OK.
tree_render_issue.mp4
NodesSource = new HierarchicalTreeDataGridSource<NodeViewModel>(nodes)
{
Columns =
{
new HierarchicalExpanderColumn<NodeViewModel>(
new TextColumn<NodeViewModel, string>
(null
, x => x.TitleForUI
,GridLength.Star
,new TextColumnOptions<NodeViewModel>()
{
CanUserResizeColumn = false,
CanUserSortColumn = false,
TextWrapping = TextWrapping.WrapWithOverflow,
}
) ,x => x.SubNodes, x=>x.IsBook)
}
};
_selectedNodes = new TreeDataGridRowSelectionModel<NodeViewModel>(NodesSource);
_selectedNodes.SelectionChanged += SelectedNodes_SelectionChanged;
NodesSource.Selection = _selectedNodes;
<TreeDataGrid IsVisible="{Binding !IsLoading}" ShowColumnHeaders="False" Source="{Binding NodesSource}" />
Metadata
Metadata
Assignees
Labels
No labels