|
|
|
|
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 12:34  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06508 seconds