GridFactory::RelationSortableGrid
<p> Returns a new GridField instance preconfigured with GridFieldConfig_RelationEdito, GridFieldAddExistingSearchButton and GridFieldOrderableRows.
</p> <p> Allows drag and drop sorting of grid rows </p> <p> Allows to search for existing records to add to the relationship, detach listed records from the relationship (rather than removing them from the database), and automatically add newly created records to it. </p>
Signature
public function RelationSortableGrid(string
$name,
[string
$title = NULL,
[SS_List
$dataList = NULL,
[string
$sortField = "Sort"]]] )
Parameters
$name
— string$title
— string$dataList
— SS_List
$sortField
— string- The field to order by
Returns
- GridField