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 Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
491 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,814 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,318 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
724 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rena Ni - MSFT 1,851 Reputation points Microsoft Vendor
    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

  2. SurferOnWww 946 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/