Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected documentation example for appending to top

  • Loading branch information...
commit 97ca1f8f4d71485eb4c8a0f03a30655f14776ecd 1 parent 1e24d1e
@UndefinedOffset authored
Showing with 2 additions and 1 deletion.
  1. +2 −1 
3 
@@ -48,7 +48,8 @@ GridFieldSortableRows provides 4 "events" onBeforeGridFieldRowSort(), onAfterGri
#### Appending to the top instead of the bottom
By default GridFieldSortable rows appends to the bottom of the list for performance on large data sets, however you can set new records to append new records to the top by calling setAppendToTop(true) on your GridFieldSortableRows instance.
+$myGridConfig->addComponent($sortable=new GridFieldSortableRows('SortOrder'));
## Migrating from SilverStripe 2.4 and Data Object Manager's SortableDataObject
Please sign in to comment.
Something went wrong with that request. Please try again.