From ae9a12ed61bb042b3cdb7d67f5b4d2b11d100ed0 Mon Sep 17 00:00:00 2001 From: James Ayers Date: Mon, 16 Dec 2013 14:48:48 +1300 Subject: [PATCH] Now uses GridFieldExtensions for the sortable rows --- code/DMSSiteTreeExtension.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/DMSSiteTreeExtension.php b/code/DMSSiteTreeExtension.php index a29bea5..80dc402 100644 --- a/code/DMSSiteTreeExtension.php +++ b/code/DMSSiteTreeExtension.php @@ -53,7 +53,8 @@ class DMSSiteTreeExtension extends DataExtension { $gridFieldConfig = GridFieldConfig::create()->addComponents( new GridFieldToolbarHeader(), new GridFieldFilterHeader(), - new GridFieldSortableHeader(), + //new GridFieldSortableHeader(), + new GridFieldOrderableRows('DocumentSort'), new GridFieldDataColumns(), new GridFieldEditButton(), new DMSGridFieldDeleteAction(), //special delete dialog to handle custom behaviour of unlinking and deleting