Get visible items when using IDataFiltee

Grids for WPF Forum

Posted 8 months ago by David jonsson
Version: 24.1.2
Avatar

Hi!

Im wondering if there is any way to get the currently visible list of items when using a DataFilter on a TreeListView?

Needed for testing purposes where I mock my view away.

Regards/ David

Comments (3)

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

Hi David,

The TreeListView.ItemsSource is effectively bound to the flat list of items that are "visible" in the control, where "visible" there means expanded and also possibly scrolled out of the TreeListView's bounds.


Actipro Software Support

Posted 8 months ago by David jonsson
Avatar

okey :/

That wouldnt work then i a testing setup where the view is mocked away. Any plans to make the itemsource available through the itemadapter?

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

Hi David,

We don't have plans to add anything like that to the item adapter, but you could always bind the TreeListView.ItemsSource back to a property of your view's viewmodel if you needed access to it.


Actipro Software Support

The latest build of this product (v24.1.4) 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.