Selection of Checkbox Issue after sorting in Virtual Table [message #11959] |
Thu, 04 June 2009 16:20 |
Eclipse User |
|
|
|
Hi,
I am having some trouble with Virtual Table especially when i am taking
some action on rows. I have a virtual table(built using TableViewer) with
IStructuredContentProvider and ITableLabelProvider and have a Model object.
I have sorting defined on one of the columns (custom comparator class
extended ViewerComparator). The first column of every row has a checkbox
in it(I used CheckBoxCellEditor). The sorting both ascending and
descending works fine. The data displayed in viewer looks correct.
However when the sorting is done in descending order and the checkbox is
selected on any given row, the checkbox selection is taking place in
reverse order. For instance, when the rows are in descending order, if i
select the checkbox on 1st row, the checkbox on the last row gets checked.
It almost looks like the viewer cache and model that feeds the data into
tableviewer are out of sync.
Has it got anything to do with virtual table? I removed the VIRTUAL flag
from the TableViewer, the checkbox selection seemed to work fine. I am not
sure if there is anything wrong with my implementation. Has anyone
encountered this issue before? I can provide some code snippets if i didnt
make it very clear. I appreciate your feedback
Thanx
Priyanka
|
|
|
Powered by
FUDForum. Page generated in 0.11620 seconds