Re: Page Navigation - order of items

2008-09-28 Thread Igor Vaynberg
you dont need to sort it, just write an iterator that iterates from the end of the list to the front and return that from the databprovider. -igor On Sun, Sep 28, 2008 at 9:03 AM, eyalbenamram <[EMAIL PROTECTED]> wrote: > > no.. I recieve the list and it is sorted from oldest to newest.. > any su

Re: Page Navigation - order of items

2008-09-28 Thread eyalbenamram
no.. I recieve the list and it is sorted from oldest to newest.. any suggestion about how to sort it? I coulnt think of a way.. phil59 wrote: > > Seems to me you'd want to sort the messages in the order they were > received. > Like by timestamp or ID. > > On Sun, Sep 28, 2008 at 10:32 AM, e

Re: Page Navigation - order of items

2008-09-28 Thread Phil Grimm
Seems to me you'd want to sort the messages in the order they were received. Like by timestamp or ID. On Sun, Sep 28, 2008 at 10:32 AM, eyalbenamram <[EMAIL PROTECTED]>wrote: > > Hi again, > I do not think I need to sort the list of items. think of 5 messages sent > by > the user, 3 items per pag

Re: Page Navigation - order of items

2008-09-28 Thread eyalbenamram
Hi again, I do not think I need to sort the list of items. think of 5 messages sent by the user, 3 items per page are displayed. I need it to show items 3,4,5 on the current page (in this order), and when pressing previous page, show items 1,2. Any solution? phil59 wrote: > > Eyal, > > As part

Re: Page Navigation - order of items

2008-09-28 Thread Phil Grimm
Eyal, As part of setting up the columns, I call SortableDataProvider.setSort() ie., - dataProvider.setSort("publishDate", false); to define the initial sort column (and ascending/descending order). Phil On Sun, Sep 28, 2008 at 9:57 AM, eyalbenamram <[EMAIL PROTECTED]>wrote: > > Hi, > I