revogrid icon indicating copy to clipboard operation
revogrid copied to clipboard

cellCompare / sorting does not work if a cellTemplate is present

Open eddie-englund opened this issue 1 year ago • 2 comments

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

eddie-englund avatar May 03 '23 11:05 eddie-englund

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

os-tohe avatar Jul 07 '23 09:07 os-tohe

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!

eddie-englund avatar Jul 14 '23 06:07 eddie-englund

fixed: https://github.com/revolist/vue3-datagrid/commit/ea33005b0eceaa2ed5c47dc1b20f43a50ccbc70e

revolist avatar Jul 12 '24 15:07 revolist