|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03481 seconds