TreeGridView Expander Visibility after Failed Async Children Load

Grids for WPF Forum

Posted 5 months ago by Rick - Developer, Visual Software Systems LLC
Version: 22.1.1
Avatar

In my application, I load TreeGridView nodes on demand using async web service calls .  99% of the time, the service call is successful, but sometimes it fails due to various authorization issues.  When this happens, the Expander disappears.  I need it to remain visible so the user can retry the expansion after correcting the authorization issue.  I've tried adding a call to TreeListBoxItemAdapter.InvalidateChildren(), as per the documentation, but this immediately calls TreeListBoxItemAdapter.GetChildren() which returns an empty ObservableCollection (because there are no children yet).  How do I get the Expander to remain visible in this use case?

Comments (2)

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

Hi Rick,

If you set the node to be IsExpanded = false prior to InvalidateChildren, does that make any difference?

If not, can you put together a new simple sample project showing this scenario and send that to our support address, referencing this thread?  Be sure to exclude the bin/obj folders from the .zip you send so it doesn't get spam blocked.  Then we can debug with that and see if we can some up with a way to support this.


Actipro Software Support

Posted 5 months ago by Rick - Developer, Visual Software Systems LLC
Avatar

I just sent over a sample project that illustrates the issue.

The latest build of this product (v22.1.3) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.