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

Virtualization with multiselection

3 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jura
Top achievements
Rank 1
jura asked on 19 Aug 2015, 01:26 PM

I am using VirtualQueryableCollectionView with RadGridView and at the same time multiselection mode.

It was already discussed previously with no real solution as far as I know.

When select all (Ctrl+A) is called, all items are loaded into memory which defeats the virtualization and is useless.

So what are the possibilities to fix it?

  • Use single selection mode, which is not a solution.
  • Use indexes instead of items.
  • Use item identifiers if available instead of items.
  • Use proxied item objects with knowledge of loaded state and internally loadable when required, which is quite complex.
  • Limit ​maximum number of selected items to reasonable value (LoadSize) and add selection events based on indices.

Just my thoughts. I think I will take the last way... and You?

 

Marek Ištvánek

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 20 Aug 2015, 11:58 AM
Hello Marek,

We had such a request on the feedback portal, and the development team rejected it due to the stated reason: Cannot extended select all the items when GridView is bound to VirtualQueryableCollectionView.

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
jura
Top achievements
Rank 1
answered on 24 Aug 2015, 07:32 AM

Well, that is not the reason for me ;-)

The best solution I see now is to have SelectedIndexes and AllowSelectedItems on GridView so that when AllowSelectedItems is false, SelectedItems will be ignored and only SelectedIndexes will be updated.

This is doable.

 

Marek

0
Dimitrina
Telerik team
answered on 24 Aug 2015, 07:58 AM
Hello,

Thank you for sharing your solution with the community here and also updating the feedback item so that other clients can also benefit from it. 

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
jura
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
jura
Top achievements
Rank 1
Share this question
or