Knowledge Center

25 Jun, 2020

Row Reorder by Drag and move rows in DataTable plug-in.

Posted on 25 Jun, 2020 by Admin, Posted in Dynamics 365

Row Reorder by Drag and move rows in DataTable plug-in. Blogs

Row Reorder by Drag and move rows in DataTable plug-in.


In my last blog I explain how to display a grid using DataTable plugin. In this blog I’m going to explain how we can add feature of Row-Reorder in DataTable. Row Reorder adds the ability for rows in a DataTable to be reordered through click and drag / touch and drag.

Step by Step

  1. We are using jQuery plugin DataTable and for that we must add following CDN links under the tag.
    1. jQuery :
    2. CSS link:
    3. JS link:
  2. For reorder :
    1. JS link:
    2. CSS link:
  3. In
  • In < head > tag, add script using [removed] tag as following:
    1. [removed]
      $(document).ready(function () {
      var table = $(‘#ReorderTable’).DataTable({
      rowReorder: true
  • To make GUI more relatable then change cursor symbol when we hover to column while moving.
    1. #ReorderTable tbody td:first-child {
      cursor: move;

Above example is for implementing DataTable plugin with reorder from scratch. If you already have DataTable Plugin implementer and you want to add Row Reorder feature, then just add reorder related JS and CSS link as above and add following property to DataTable :

rowReorder: {
dataSrc: ‘

tag, add table using tag and give appropriate id table as following:



























Sr. No. Full Name Phone Number
1 Karan Sharma 7878787878
2 Raju Rastogi 32323232323
3 Anil Rao 23232323232



























This is a Required Field


Recent Updates

16 Jul, 2024

How to use Solutions with Power Pages

What is Solution in power Pages? A solution is a container for components such as Website Configuration and Dataverse Components.…

15 Jul, 2024

Create a Dataverse table with a SharePoint List

In today’s business world, Organization uses SharePoint lists for document management, and data storage. Let's assume a scenario where an organization…

Case Study BW - Nebulaa IT Solutions
Case Study
03 Jul, 2024

Revolutionizing Build Warranty's Operations with a Scalable and Automated Dynamics 365 Solution

Customer Overview Build Warranty (BW), a leading UK-based provider of warranty solutions for the construction industry, sought a strategic partner…