Commit Graph

14 Commits

Author SHA1 Message Date
Pieter Hollants
ffee8d4d35 GridFieldOrderableRows: Allow setting the reorder handles column's number
Until now the column with the handles starting the reorder action always
appeared as the first column at the left of the GridField. As a followup to
the previous change's for extra sort fields, this change allows specifying
a different column index. This way you can eg. move the handles behind a
category column whose sorting will always be enforced, thus giving the user
visual support in understanding the limits of drag-n-drop reordering.
2015-01-18 20:05:44 +01:00
Pieter Hollants
79972af8a2 GridFieldOrderableRows: Support extra sort fields
This change allows for the specification of extra sort fields that are to be
applied before the user-defined sort field's order. This is useful in
scenarios where a GridField is used with one or more "fixed" columns which
eg. categorize the entries and whose order is important but the user should
still be allowed to modify the order within a category.

This change affects the PHP code only, therefore the Javascript code will
still let the user drag rows into foreign "categories". However, after
dropping it the GridField will reload and the extra sort order will be
enforced again.
2015-01-18 20:05:41 +01:00
Adam
5ddbf9cd43 Check from ExtraFields in getSortTableClauseForIds
if no extrafields are on the many_many relationship error generated same fix as chillu on getSortTable
2014-07-09 22:47:11 +10:00
Jyrki Lilja
128737d12a Update only current record for many_many relations
Fixes #48 but needs more testing. I only checked that it works for one case!
2014-04-04 11:09:05 +03:00
Ingo Schommer
793f6d96ec Fixed array_key_exists() usage in OrderableRows 2014-03-08 22:18:01 +13:00
Andrew Short
82bb0524b3 Avoid manually constructing URLs.
This means that URLs with query parameters are no longer incorrectly
created.

Closes #6, #23, #27.
2013-10-08 09:30:59 +11:00
Andrew Short
aad2b973ce Add allowed actions definitions 2013-07-11 12:40:13 +10:00
Zauberfisch
910f77b049 MINOR: return on all setters (fixes #16) 2013-04-24 07:28:47 +01:00
ajshort
aa09d48112 Fix sort values not being populated. 2013-02-12 23:52:53 +11:00
ajshort
1bc24992c6 Fix incorrect property accessing. 2013-02-12 23:29:55 +11:00
ajshort
38bb120c88 Remove no longer needed property access hacks. 2013-02-10 16:34:48 +11:00
ajshort
c10810c3f6 Fix requirements being inconsistently included. 2013-02-09 01:42:48 +11:00
Andrew Short
57572def57 Clone lists for 3.0 compatibility. Closes #1. 2013-01-10 22:26:14 +11:00
Andrew Short
e41f2fdacf Implemented a drag-and-drop orderable rows component. 2012-12-30 16:12:06 +11:00