Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I'm using HasManyComplexTableField to manage 'bookings'.
The default datagrid view (similar to this one: http://tinyurl.com/lsper6) defaults to 'pages' of 10 items each.
Is there any way to alter this default amount to, say, 30 items?
Any help / advice appreciated.
you can do it with the 'setPageSize' method. Here's an example.
$vidField = new HasManyComplexTableField(
'VideoTitle' => 'Title'
Ironically I found this this morning by checking properties in complexFieldTable.php and then extending my model in the exact way you suggested.
Works a charm.
You also seem to be able to edit the pageSize property directly eg:
$vidField->pageSize = 20;