Allow define Grid sort within the template.
-------------------------------------------

                 Key: TAPESTRY-2292
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2292
             Project: Tapestry
          Issue Type: Improvement
          Components: Core Components
    Affects Versions: 5.0
         Environment: T 5.0 - 5.0.11
            Reporter: Adam Zimowski
            Priority: Minor
             Fix For: 5.0.12


Grid by default enables sort for all columns without providing a flexible and 
quick mechanism at the template level for configuring which columns to make 
sortable, and to allow to turn on and off sorting alltogether. Current sort 
default should be evaluated as lot of developers disable sorting for all 
columns only to enable it for a column or two, if that at all.

Proposed enhancement:

1) Change Grid to disable sort on all columns.by default (this is the least 
needed of all four enhancements, but it would be nice if this could be changed)

2) Add sortAll parameter which accepts boolean value. If true, then sort for 
all columns is enabled, if false sort for all columns is disabled. Per 
enhancement #1, default would be false.

3) Add sorted parameter which accepts comma delimited names of columns to be 
sorted. I am not sure how this would play out with existing include parameter, 
as some decisions have to be made as far as what if "sorted" contains a 
property which is excluded from display in a first place?

4) Add unsorted parameter which is opposite of sorted parameter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to