You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way maybe pre-load data so that .Children access would get it from cache? By the looks of it, as soon as you expand a row, everything in chain expects data to be ready immediately, so there is no point in time one could load data asynchronously.
The text was updated successfully, but these errors were encountered:
Hello,
We use Behavior<TreeDataGrid> and subscribe on HierarchicalTreeDataGridSource<object>.RowExpanding event by using reflection. In event handler we start async children loading (vm layer) and after complete expand node in tree view.
I am looking at files page sample (https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/blob/master/samples/TreeDataGridDemo/ViewModels/FilesPageViewModel.cs) which loads row children on access (https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/blob/master/samples/TreeDataGridDemo/Models/FileTreeNodeModel.cs#L80), however all of it is synchronous I/O access.
Is there a way maybe pre-load data so that
.Children
access would get it from cache? By the looks of it, as soon as you expand a row, everything in chain expects data to be ready immediately, so there is no point in time one could load data asynchronously.The text was updated successfully, but these errors were encountered: