is there any way of limiting the number of results displayed on the CTF in ModelAdmin to 1-10 .... 11-21. currently its just display all my search from 1 to 40 and only 1 to 13 a visible
tx
P
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
is there any way of limiting the number of results displayed on the CTF in ModelAdmin to 1-10 .... 11-21. currently its just display all my search from 1 to 40 and only 1 to 13 a visible
tx
P
*bump* I would also like to know how to change how many results are shown in the CTF before it begins paging, also while your there how do you make the header fields sortable (onclick)?
bump! you guys make any further progress with this?
In your ModelAdmin class add
public static $page_length = 10;
I just found that in ModelAdmin::getResultsTable(), tried on my 2.4.5 install and it worked fine
My problem was the pagination wasnt kicking in.
But I realise this is an issue with the PanelModelAdmin I am using.
This should work in panelmodeladmin the same as in
Modeladmin....