Remove a row in a GWT Datagrid without scrolling to the top of the grid -


i have datagrid may display many rows per page. let's displayed 25 rows per page. viewable area of grid, however, 10 rows. i.e. there 400px entire grid , each row 40px. there scroll bar on grid.

when remove single row in grid, grid automatically moves first row in grid. if have scrolled bottom , deleted last row, once again moved 1st row.

i have attempted several ways of combatting this, can't find solution works way want to.

i've tried scrolling row directly before or after deleted row view using scrollintoview() method.

i've tried figuring out how determine rows in visible range before deletion, getvisiblerange() method relevant page range, not actual displayed range.

i've searched web , seems i'm 1 having problem. missing?

i had same issue, found bug happend if datagrid has keyboardselectionpolicy="bound_to_selection"


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -