Hi Bernhard, I think it would be a good thing to have support for multi sort with sfGrid. And I have a suggestion how this could work and look like without Javascript:
- there should be a link to switch between single and multi sort mode (and/or a config option) - in multi mode the sortable columns are selectable (simply a link without asc/desc button) - by clicking on a column it is added to a kind of sort stack (or chain or whatever you like to call it) and should then not be clickable anymore - a "sort row" above the column row displays the selected columns similar to a breadcrumb navigation with buttons for asc/desc, a (x) button to remove a column from sorting and maybe even (->) and (<-) buttons to move the "sorting priority" at each of the selected columns - and now you can use these buttons to change sorting as you like - there should also be a "reset" link to turn off the multi sort / switch back to single sort / return to default setting or whatever It would then be cool to have load/saveSorting() methods so one can optionally store a multi sort setup in the user preferences. I think you should definately introduce an sfGridRoute class for simplifying all your link stuff, for example the makeUri() should be refactored to use a route rather than hacking it.. ;-) regards, Matthias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
