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 |
Beta Was this translation helpful? Give feedback.
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:
|
Beta Was this translation helpful? Give feedback.
-
@gvreddy04, maybe you could integrate something similar into the Grid component! :) |
Beta Was this translation helpful? Give feedback.
If anyone needs something similar, I built it this way:
1 In the Grid component, I added a custom class:
table--sortable
and thedata-id="@context.Id"
to the first column2 Then, in the page code, I added the following: