I can't change the columns grid position after using reorderable property

1 Answer 51 Views
Drag and Drop Grid
Carlos
Top achievements
Rank 1
Carlos asked on 09 Aug 2023, 07:19 PM

I have a button for my grid that serves to toggle the column position.

However, after I change the position by moving them with the 'reorderable' property, my button doesn't work.

I created an example to make it clearer:

https://stackblitz.com/edit/angular-jcbhse-m3a9zm?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fproducts.ts

1 Answer, 1 is accepted

Sort by
1
Tsvetelina
Telerik team
answered on 14 Aug 2023, 12:33 PM

Hi Carlos,

Thank you for the provided details.

The undesired behavior can be fixed by passing a trackBy function to the ngFor directive. Please check the modified Stackblitz example:

https://stackblitz.com/edit/angular-jcbhse-q2ytaq

I hope this helps.

Regards,
Tsvetelina
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Drag and Drop Grid
Asked by
Carlos
Top achievements
Rank 1
Answers by
Tsvetelina
Telerik team
Share this question
or