This is a migrated thread and some comments may be shown as answers.

A way for correct selection counting?

4 Answers 33 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Eugeny
Top achievements
Rank 1
Eugeny asked on 30 Oct 2019, 12:54 PM

Good day! 

I have a problem with determination of selected items when IsVirtualizing="True". In attached project I used two different ways to counting selected items: 1. With binding IsSelected property, 2. Just counting of treeview SelectedItems. And both are incorrect in situation when selecting some number of treeview items by clicking with Shift button (SelectionMode="Extended"). For example, I select more than 8000 items but received next: items with IsSelected = true property: 37, selected tree view items: 980

Link to download project sample: click

4 Answers, 1 is accepted

Sort by
0
Eugeny
Top achievements
Rank 1
answered on 30 Oct 2019, 12:57 PM
Link to .zip project archive: click
0
Vladimir Stoyanov
Telerik team
answered on 01 Nov 2019, 02:55 PM

Hello Eugeny,

Thank you for the provided project. 

I was able to reproduce the described behavior and I have logged the following item in our feedback portal for it: TreeView: Extended selection does not work correctly with the UI Virtualization enabled when there is a large number of items selected on the first level. You can follow the item in order to get notified for any developments. I have also updated your telerik points as a thank you for bringing this to our attention.

I am afraid that for the moment I cannot suggest a workaround for this issue, since it is related to internal functionality of the control. What I can suggest as an alternative is checking out our RadTreeListView component. We also have an article that demonstrates how to visually alter the RadTreeListView to make it similar to the RadTreeView: Customize RadTreeListView to look like a RadTreeView.

Regards,
Vladimir Stoyanov
Progress Telerik

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.
0
Eugeny
Top achievements
Rank 1
answered on 01 Nov 2019, 03:41 PM

Hello Vladimir!

Thank You for reply, but it is not possible to use RadTreeListView in my current work project because it has extremely low perfomance when using CellTemplateSelector with complex column template that has dozens of converters. Also RadTreeListView has memory leaks while scrolling that i can't explain, in RadTreeView i don't see it

0
Vladimir Stoyanov
Telerik team
answered on 05 Nov 2019, 12:19 PM

Hello Eugeny,

You can check out the Tips and Tricks article of the RadGridView (it is also valid for the RadTreeListView) in order to learn the recommendations for improving the performance of the control. Indeed using complex CellTemplates along with converters is not recommended. 

That said, with regards to the mentioned memory leaks, may I ask you to share a sample project demonstrating that? You can do so by opening a new support ticket (since projects cannot be attached to forum posts). This will hopefully allow us to investigate the scenario and better assist you.

Regards,
Vladimir Stoyanov
Progress Telerik

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.
Tags
TreeView
Asked by
Eugeny
Top achievements
Rank 1
Answers by
Eugeny
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or