21489 Posts in 5783 Topics by 2621 members
General Questions
SilverStripe Forums » General Questions » Sorting MemerTableField and number of entries displayed
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 427 Views |
-
Sorting MemerTableField and number of entries displayed

25 January 2011 at 1:16am
When in Security, I'd like to be able to click on the table headers to sort the columns. Is this possible?
Also, can I set how many entries are displayed per page?
Thanks in advance!
-
Re: Sorting MemerTableField and number of entries displayed

25 January 2011 at 1:23am Last edited: 25 January 2011 1:23am
I'd say the same as here...
http://www.silverstripe.org/general-questions/show/15052
but with SecurityAdmin or MemberTableField or something
-
Re: Sorting MemerTableField and number of entries displayed

25 January 2011 at 1:58am
Thanks for your reply. I was looking into the setPageSize() function and it works if I put it in RootForm in /cms/code/SecurityAdmin.php. I'd rather not edit the core files.
-
Re: Sorting MemerTableField and number of entries displayed

25 January 2011 at 2:29am
you can add a decorator to apply it and keep it all in mysite
and I like your view - I did add it as a concern when I gave the advice previously...
-
Re: Sorting MemerTableField and number of entries displayed

25 January 2011 at 2:54am Last edited: 25 January 2011 2:54am
I've extended my Member class with some extraStatics with a DataObjectDecorator. Can I place the setPageSize() in there somewhere?
-
Re: Sorting MemerTableField and number of entries displayed

25 January 2011 at 3:24am
it's not Member to decorate, but in whatever Admin - like RootForm like you mentioned - RootForm Decorator (note I am not sure if it is possbile - I've decorated members, leftandmain, but not a form)
| 427 Views | ||
|
Page:
1
|
Go to Top |


