Get visible items when using IDataFiltee

Grids for WPF Forum

The latest build of this product (v24.1.2) was released 3 months ago, which was before this thread was created.
Posted 1 month 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 1 month 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 30 days 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 27 days 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

Add Comment

Please log in to a validated account to post comments.