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

Multiselect with virtualization

3 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 18 Mar 2016, 10:15 PM
Can you please share example for "selectable: 'multiselect'" with virtualization enabled for grid. The page size is 50. if data is more than 1000 rows, if user selects all the 1000 rows then select() method always returns 10-55 rows randomly. Also how to maintain the selection with scroll. since grid renders only current page.

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 22 Mar 2016, 09:22 AM
Hi Manoj,

Check this how to example as it demonstrates how to maintain the selected items during paging (virtualization uses paging).


Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Manoj
Top achievements
Rank 1
answered on 23 Mar 2016, 04:43 AM
Thanks..but the example you shared only demonstrates the pagination....but pagination with virtualization does not have all the rows rendered in the grid. so if there are 1000 rows in a grid (with page size 100) and user selects 1st row and then shift click 1000th row. then there should be a way to get all the selected rows. I think current implementation is based on class "k-state-selected" and it does not return the rows which are not in the current view. can you please share an example of pagination with virtualization with 1000 rows and page size of 100 and user can select all the rows using shift+click?
0
Alexander Valchev
Telerik team
answered on 25 Mar 2016, 08:50 AM
Hi Manoj,

The idea of the virtualization is to render the rows on demand. Rendering all rows will slow down the Grid or even crash the application if there are too many rows.

If you use the approach demonstrated in the "how to" example which I provided you will have the IDs of the selected records (the `selectOrders` array). It is not possible to get all the <tr> elements, it is possible to store the data records or their IDs.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Manoj
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Manoj
Top achievements
Rank 1
Share this question
or