Re: Pagination default order for each column

2007-04-30 Thread Defranco

no ideas?

defranco


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Pagination default order for each column

2007-04-24 Thread Defranco

Hi,

I'm using Pagination to display a table with several columns.

My question is if is possible to setup a default order (DESC or ASC)
independently for each column, to be used on the first time that any
column header is clicked.

For example:

If I have the following table:

Rank  |   Price  |Points
  1  |   $5  |   9.5
  2  |   $8  |   9.7
  3  |   $3  |   9.2
  4  |   $1  |   8.3
  5  |   $10|   8.5

If I click the "Price" column header for first time, I would like that
table would be sorted by Price *Ascending* order ($1, $3, $5 ...)

But If I click the "Points" column for the first time, I would like
that the table would be sorted by Points *Descending* order (9.7, 9.5,
9,2 ...) that makes more sense (no need to click it twice)

Is it possible in configure it in Pagination?

Sorry if it is a basic question - I'm new in Pagination.

regards

Defranco


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---