Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

I used more or less your example for the lazy loading of items. I wanted to add one time at a time to test async population of the list. It all works (almost) fine. The items are added just as I want, but the "HasChildNodes" for the chold items is ignored and is only refreshed if the node is collapsed and expanded again. I tried to set the value again and/or call  RaisePropertyChanged, but nothing happens. I update ItemName and it is updated just fine, but the HasChildNodes is not.

The ExecuteOnDemandLoading is declared as async and I am using await Task.Delay(200) between adding the items, so it might have to do with being in the wrong thread, but as the name update works I assume it ok.

I can work around it by refreshing the status of the TreeViewNode from the looping through and read the HasChildNodes from the "content", but I assume it is meant for it to be done automatically as it is done so when it is collapsed and expanded.