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

Virtualization Issue

1 Answer 28 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 16 Jul 2014, 07:58 AM
I took example project from this thread

I'd like to be able to select multiple clubs and perform an operation on them. I also would like virtualization to be enabled for better performance.

I've added IsSelected property to Club object to track which clubs are selected and for this example I do simple counting of selected clubs on button click.

When I select grid rows inside viewport IsSelected property is correctly changed on them and I receive correct count on button click.

When I select all rows with Ctrl+A shortcut or using Shift+Click, IsSelected property is changed only on visible rows inside viewport and count returns not 400, but 10-30, depending on the size of browser window.

Is it possible to track reliably selected rows outside viewport without disabling virtualization?

Attached is modified project with observed issue (rename png to zip).

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 17 Jul 2014, 02:04 PM
Hi,

The Extended selection with VirtualQueryableCollectionView is only recommended when the selected items are in the View area. It is not possible to actually select items outside it as the items to be eventually selected/displayed are still not presented. This is the case until the user scrolls to a particular position so that the items to be displayed into view are actually loaded. 

I am afraid this collection was designed to serve mostly ReadOnly scenarios and its capabilities are limited. 

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Sergey
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or