wenzhixin / bootstrap-table

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation, Vue.js)
https://bootstrap-table.com/
MIT License
11.73k stars 4.44k forks source link

selecting only 200 first rows with treegrid.js or virtualscroll enabled #4818

Open yncki opened 4 years ago

yncki commented 4 years ago

https://live.bootstrap-table.com/code/yncki/1619

load 10k rows click select all checkbox when row 0 is visible

result:

deselect all

result: only rows 200 - 400 are selected

btw value 200 is from clusterRows 50 x 4 image

maximbashevoy commented 2 years ago

It's a little bit worse than described (use live link in the top post):

  1. Load 10000 rows
  2. Select first three checkboxes (by clicking, manually)
  3. Scroll all the way down
  4. Scroll all the way up
  5. The three checkboxes are no longer selected?

Also, using custom checkbox handler and setting the state using updateCell doesn't help either. On scroll back It always reverts to the values it's been initialised with (either checked or unchecked).