Unplanned
Last Updated: 10 Mar 2025 08:09 by ADMIN
Ian
Created on: 03 Mar 2025 10:33
Category: Sortable
Type: Feature Request
6
Expose a custom trackBy function to prevent sortable from rerendering when data updates

We have a scenario where we have inputs inside the sortable component. As the user types into the input the focus is lost constantly this is due to the Sortable component being re-rendered unnecessarily by Angular change detection. You can see an example here

Angular is moving towards immutable data structures and it is often the recommended practice. Therefore I believe the sortable component should be able to handle the scenario provided. This should be achievable by internally using a trackBy function to help Angular recognise when data hasn't changed. This should be accompanied by allow the consumer to provide their own function for tracking.

A similar issue was raised 5 years ago but wasn't adopted. In my opinion given the massive advancements in Angular and the introduction of Signals this becomes a more pressing issue now and arguably moves from the realm of feature request to bug.

 

1 comment
ADMIN
Yanmario
Posted on: 10 Mar 2025 08:09

Hi Ian,

I will update the status of the feature request to "Unplanned" and our team will track the demand for the feature and consider it for implementation in the future.

Regards,
Yanmario
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!