columnReorder : booleanDefault: false

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

Examples

Material Design

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

  

Bootstrap

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

  

Bootstrap 4

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