How to move the rows of a table dynamically.

kevin david 161 Reputation points
2022-08-16T23:37:11.983+00:00

I need to order the elements of the rows dynamically, or in the order that the user chooses using buttons and later assign that new order in the database. Thank you very much!

231774-image.png

that is the final model of how it should look

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,347 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,141 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,247 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rena Ni - MSFT 2,061 Reputation points
    2022-08-17T02:52:42.827+00:00

    Hi @kevin david ,

    I think you can check this simple demo: http://jsfiddle.net/cambraca/hhf6s/


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Rena

    0 comments No comments

  2. SurferOnWww 1,906 Reputation points
    2022-08-17T03:35:46.5+00:00

    How about the following jQuery plugin?

    Table Drag and Drop JQuery plugin
    https://isocra.com/2008/02/table-drag-and-drop-jquery-plugin/

    0 comments No comments