GridFactory::RelationGrid
<p> Returns a new GridField instance preconfigured with GridFieldConfig_RelationEditor and GridFieldAddExistingSearchButton.
</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 RelationGrid(string
$name,
[string
$title = NULL,
[SS_List
$dataList = NULL]] )
Parameters
$name
— string$title
— string$dataList
— SS_List
Returns
- GridField