revolist / revogrid

Powerful virtual data grid smartsheet with advanced customization. Best features from excel plus incredible performance 🔋
https://revolist.github.io/revogrid
MIT License
2.68k stars 167 forks source link

cellCompare / sorting does not work if a cellTemplate is present #396

Open eddie-englund opened 1 year ago

eddie-englund commented 1 year ago

When sorting with cellCompare (or just any sorting i.e default sort), then the row you select doesn't move as it's supposed to but rather all the other rows move which are not using cellTemplate with VGridVueTemplate.

With cellTemplate (note that all the rows around it are also using cellTemplates)

https://user-images.githubusercontent.com/16852656/235902165-afae971e-56c3-4853-ad88-49651a590456.mov

Without cellTemplate

https://user-images.githubusercontent.com/16852656/235902183-a1e0db6a-ad3f-4186-9529-a18b6f7d56a4.mov

Reproduce: https://codesandbox.io/s/determined-zeh-854ibx?file=/src/App.vue

os-tohe commented 1 year ago

I am having the same problem. Is there any way to fix this?

eddie-englund commented 12 months ago

I haven't been able to figure out a solution to this so we had to do the sorting ourselves on the back-end and hackily get access to the click event on the headers.

Would really like this fixed!