Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » sort table does not work on demo application when table is VIRTUAL
sort table does not work on demo application when table is VIRTUAL [message #60545] Mon, 19 November 2007 18:09 Go to next message
Valer Roman is currently offline Valer RomanFriend
Messages: 36
Registered: July 2009
Member
Hi

I would like to know if for u the sort of rows works in a VIRTUAL
table, in an application of your own or in the demo application.

Thanks,
Val
Re: sort table does not work on demo application when table is VIRTUAL [message #60888 is a reply to message #60545] Mon, 19 November 2007 22:16 Go to previous messageGo to next message
Andrej Dimic is currently offline Andrej DimicFriend
Messages: 77
Registered: July 2009
Member
with VIRTUAL, you have to reorder your data source (i.e SQL) and redisplay
the data.
When using static loading of data, use comperators as shown in the Demo.

Andrej
Re: sort table does not work on demo application when table is VIRTUAL [message #60983 is a reply to message #60888] Tue, 20 November 2007 09:09 Go to previous messageGo to next message
Valer Roman is currently offline Valer RomanFriend
Messages: 36
Registered: July 2009
Member
Andrej Dimic wrote:
> with VIRTUAL, you have to reorder your data source (i.e SQL) and
> redisplay the data.
> When using static loading of data, use comperators as shown in the Demo.
>
> Andrej
>
>
Hi

Thanks for the answer, I have reordered my data from sql.
However, after sorting I refresh the data with tableViewer.refresh();
but still the table contains stale data and only when selecting a row
from the table the new data is show on all visual rows of the table.
Then when scrolling down the same thing old data is shown and only
when selecting some row it is refreshed.
I keep my data in a cache in pages of 40 elements but I clear the
cache when doing the sort and I can see that the update method of the
ILazyContentProvider fills up with new data which however is not show
until selecting some row.

Thanks
Val
Re: sort table does not work on demo application when table is VIRTUAL [message #63991 is a reply to message #60983] Mon, 03 December 2007 15:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi,

sorry for the late reply. I just added sorting for the VIRTUAL
TableViewer in the ControlsDemo (tab TableViewer) the way I think it
should be done - and it works. There are no stale rows or similar.
You could check out the code from CVS HEAD and have a look what's
different from your implementation. The actual sorting is done in
CTableViewer#sort, line ~382.
If you still think there is a bug feel free to file a BugZilla entry.

Cheers,
Rüdiger



Val wrote:
> Andrej Dimic wrote:
>> with VIRTUAL, you have to reorder your data source (i.e SQL) and
>> redisplay the data.
>> When using static loading of data, use comperators as shown in the Demo.
>>
>> Andrej
>>
>>
> Hi
>
> Thanks for the answer, I have reordered my data from sql.
> However, after sorting I refresh the data with tableViewer.refresh();
> but still the table contains stale data and only when selecting a row
> from the table the new data is show on all visual rows of the table.
> Then when scrolling down the same thing old data is shown and only
> when selecting some row it is refreshed.
> I keep my data in a cache in pages of 40 elements but I clear the
> cache when doing the sort and I can see that the update method of the
> ILazyContentProvider fills up with new data which however is not show
> until selecting some row.
>
> Thanks
> Val
Re: sort table does not work on demo application when table is VIRTUAL [message #64086 is a reply to message #63991] Mon, 03 December 2007 17:34 Go to previous message
Valer Roman is currently offline Valer RomanFriend
Messages: 36
Registered: July 2009
Member
Hi

using RAP 1.0.1 sort on virtual table viewer works better :)
However there is still a problem when the amount of data showed in the
table can not be displayed at once (is more thant the visible part of
the table)
for this I have created bug no. 211790 it contains the steps and patch
to reproduce on demo application

Cheers,
Val

Rüdiger Herrmann wrote:
> Hi,
>
> sorry for the late reply. I just added sorting for the VIRTUAL
> TableViewer in the ControlsDemo (tab TableViewer) the way I think it
> should be done - and it works. There are no stale rows or similar.
> You could check out the code from CVS HEAD and have a look what's
> different from your implementation. The actual sorting is done in
> CTableViewer#sort, line ~382.
> If you still think there is a bug feel free to file a BugZilla entry.
>
> Cheers,
> Rüdiger
>
>
>
> Val wrote:
>> Andrej Dimic wrote:
>>> with VIRTUAL, you have to reorder your data source (i.e SQL) and
>>> redisplay the data.
>>> When using static loading of data, use comperators as shown in the Demo.
>>>
>>> Andrej
>>>
>>>
>> Hi
>>
>> Thanks for the answer, I have reordered my data from sql.
>> However, after sorting I refresh the data with tableViewer.refresh();
>> but still the table contains stale data and only when selecting a row
>> from the table the new data is show on all visual rows of the table.
>> Then when scrolling down the same thing old data is shown and only
>> when selecting some row it is refreshed.
>> I keep my data in a cache in pages of 40 elements but I clear the
>> cache when doing the sort and I can see that the update method of the
>> ILazyContentProvider fills up with new data which however is not show
>> until selecting some row.
>>
>> Thanks
>> Val
Previous Topic:limitations of RAP compared to PDE
Next Topic:Help with org.eclipse.rap.demo.feature project
Goto Forum:
  


Current Time: Sat Jul 27 16:28:43 GMT 2024

Powered by FUDForum. Page generated in 0.04431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top