It is not recommended to modify the rows' visibility as it will most likely result in the appearance of blank spaces into your TreeListView
or other unpredictable behavior. I wouldn't suggest working with the visual elements when the control is virtualized due to the containers recycling mechanism. Please, take a look at the UI Virtualization
What I can suggest is to utilize a filtering approach to determine which items should be visible.
Attached, you can find a sample project in which I've demonstrated this approach. What I've done is I added a IsVisible
property which determines whether an item should be visible and not setting a Visibility directly. Please, review the project and let me know if you find it helpful.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.