primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Grid with sorted column shuffling wildly on hover after changing underlying data

Open GraemeSMiller opened this issue 10 years ago • 2 comments

If you update the data underlying the grid and you have sorted a column the grids seems to shuffle wildly if you have your cursor inside the grid. Rows are swapping position rapidly. Happens in multiple grids I have created. I have templated columns, paging enabled, not lazy loading. Nothing strange - no extra js or functionality. Data source is just an array. it only seems to happen if a column has been sorted.

Repro for me: Sort Column, change data (if am doing it with checkbox template within row), move mouse over grid and it looks like this (ignore bottom left part it is the tool for recording gif) demo

If I don't sort the data it works fine. If I re-sort the data on the same or different column the data stops shuffling until I then update it again. Once I update the shuffling starts again. Another weird thing once shuffling starts if I hover over the column headers (not clicking) the rows change order.

This started after the change was that was discussed to allow underlying data to refresh but keep the sort order. Using latest Beta 6.

GraemeSMiller avatar May 24 '16 13:05 GraemeSMiller

Just noticed - this is pretty much a dupe of Sorting by commonly re-used field yields shuffling behavior https://github.com/primefaces/primeng/issues/396

GraemeSMiller avatar May 24 '16 15:05 GraemeSMiller

Tracking at 396.

cagataycivici avatar Jun 28 '16 18:06 cagataycivici