The SortableGridField module enables drag 'n drop on GridFields. It comes with a checkbox at the top of every GridField to enable drag 'n drop.

Is it possible to set the checkbox to checked by default? As an extra functionality to that, is it also possible to hide it?
An alternative to the SortableGridField module is the GridFieldOrderableRows component in the SilverStripe Grid Field Extensions module.
GridFieldOrderableRows adds a permanent handle on the left of each GridField row without needing to check a reorder check box.
To enable the GridFieldOrderableRows component on a GridField we do the following:
$config->addComponent(new GridFieldOrderableRows('SortOrder'));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With