Repository navigation
Grid with row drag&drop sortable like Sortable List #1132
|
Hi, i need to update positions of db items that I show on a Grid. Since the Grid does not support drag&drop like Sortable List, there is any workaround to implement this features? Thanks |
Answered by
stormenergy91
Jul 6, 2025
Replies: 2 comments
|
If anyone needs something similar, I built it this way: 1 In the Grid component, I added a custom class: 2 Then, in the page code, I added the following: 3 I also created this JS function to may JS file and added it to the index.html: |
0 replies
Answer selected by
stormenergy91
|
@gvreddy04, maybe you could integrate something similar into the Grid component! :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If anyone needs something similar, I built it this way:
1 In the Grid component, I added a custom class:
table--sortableand thedata-id="@context.Id"to the first column2 Then, in the page code, I added the following: