rowReorder : booleanDefault: false

If set to true, enable row reordering with drag and drop.

Examples

Material Design

    
 <p>Drag and Drop rows in order to reorder them.</p>
 <table id="grid"></table>
 <script>
     $('#grid').grid({
         dataSource: '/Players/Get',
         rowReorder: true,
         columns: [ { field: 'ID', width: 56 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
 </script>

  

Bootstrap 3

    
 <p>Drag and Drop rows in order to reorder them.</p>
 <table id="grid"></table>
 <script>
     $('#grid').grid({
         dataSource: '/Players/Get',
         rowReorder: true,
         uiLibrary: 'bootstrap',
         columns: [ { field: 'ID', width: 36 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
 </script>

  

Bootstrap 4

    
 <p>Drag and Drop rows in order to reorder them.</p>
 <table id="grid"></table>
 <script>
     $('#grid').grid({
         dataSource: '/Players/Get',
         rowReorder: true,
         uiLibrary: 'bootstrap4',
         columns: [ { field: 'ID', width: 42 }, { field: 'Name' }, { field: 'PlaceOfBirth' } ]
     });
 </script>