Skip to content

When ShowColumnHeaders="False" data is not rendered until you scroll #377

@viktorfilim

Description

@viktorfilim

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions