TreeListBox and TreeListView can support asynchronous get subset method?

Grids for WPF Forum

Posted 1 year ago by Sunshine - Appeon
Version: 22.1.4
Avatar

Can the TreeListBox and TreeListView controls support the GetChildrenAsync asynchronous method? Because when the tree node is large enough, it will take a certain amount of time to obtain child nodes through GetChildren, which may cause the UI to be frozen, and the operating experience will be seriously affected.

Comments (3)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

TreeListBox and derived controls actually already support async loading of children via the technique described in this documentation topic.  It's demonstrated in the FolderBrowser demo.  Please see those resources for reference.


Actipro Software Support

Posted 1 year ago by Sunshine - Appeon
Avatar

Thank you for your reply.
See the documentation on loading child nodes asynchronously.
However, we are not very clear about how to apply best practices to deal with such scenarios. Can we provide a case to guide users to deal with such situations?
This is a relatively common scenario. If a case of this scenario is added to the demo program, it should be of great help to users.

Answer - Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Per the previous reply, we do show how to async load children in our Folder Browser demo in the Grids area of the Sample Browser.  There is a full example of using async Tasks there.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.