RadListBox and Select All performance issue

1 Answer 236 Views
ListBox
Andrey
Top achievements
Rank 1
Andrey asked on 22 Sep 2021, 12:24 PM

Hi, 

We have RadListBox control with custom ItemTemplate and ItemsPanelTemplate as VirtualizingWrapPanel. For example, in the case when the count of bound items is equal to 30k and a user wants to "Select all" with Ctrl+A, the program hangs for almost 5 seconds.

I made an investigation and found, that the issue related to a check statement "does this item present in collection"  inside SelectionChanger and it takes more than 92% of the execution time.

I am attaching the call tree after performance profiling:

 

Do you have any workaround for that or any good advice on how the issue might be solved?

Thank you in advance!

 

BR,

Andrew

 

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 27 Sep 2021, 09:25 AM

Hi Andrew,

Thank you for the provided profiling result.

Looking at the source code of the SelectionChanger<T> class, I do believe there is room for optimization in this specific scenario. I have thus logged a new feature request in our feedback portal on your behalf regarding it.

I'm afraid, however, that I cannot suggest a viable workaround for the time being. You can, however, follow the feedback item to get notified about any updates in its status.

If I can further assist you with anything else, please let me know.


Dilyan Traykov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ListBox
Asked by
Andrey
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or