18
Views
1
Comments
[Sortable Drag and Drop] Exclude top 2 rows drag drop
sortable-drag-and-drop
Reactive icon
Forge asset by Leonardo Pires
Application Type
Reactive

Hello, 
In my application i want to keep 1st and 2nd row unsortable, and rest as sortable, is there any way to do that. For example i have list of Student and retuning 10 rows, so i want starting 2 rows unaffected, and rest 8 rows can be sortable. 

2025-12-04 09-01-03
Kiet Phan
Champion

Hi @Sushant Sharma 

The Sortable JS has an option called Filtered,

If you initialize Sortable like below, all the item which has '.filtered' class will be excluded from Dragging.

I haven't used [Sortable Drag and Drop] Forge, but I've used SortableJS for my Project, you can implement it yourself if your need is beyond the Forge component.

https://sortablejs.github.io/Sortable/


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.