TreeListBox doesn't refresh child nodes properly when root node is hidden.

Grids for WPF Forum

The latest build of this product (v22.1.4) was released 2 months ago, which was before this thread was created.
Posted 2 months ago by Sunshine - Appeon
Version: 22.1.4
Platform: .NET 6.0
Environment: Windows 11 (64-bit)
Avatar

I created a TreeListBox and set the IsRootItemVisible property to false to hide the root node.

I then tried to make the children reload by calling the InvalidateChildren method on the root node, but nothing worked.

This only happens with the IsRootItemVisible property set to false.

Comments (1)

Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We will update our logic to handle this scenario properly for the next build when you call InvalidateChildren for the root item that isn't visible.

In the meantime, you might need to set TreeListBox.RootItem to null and then back to the real root item again.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.