|Unable to retrieve index in model from selection [message #1219013]
||Fri, 29 November 2013 15:42
| Alain Bernard
Registered: November 2013
I've implemented a NatTable with GroupBy, Filter and Sorting capabilities. All work greats. But when I register on RowSelectionEvents (with a RowSelectionProvider) I'm unable to retrieve the position of the selection in my underlying model from the selected row index.
With no filter applied, if I select the row 0, it corresponds to the item 0 in my model.
But if I activate some filter and I select the row 0, the corresponding item in my model is not 0 but, maybe, the item 149.
So I'm trying to convert the position 0 in my selection layer to the correct index in my model.
I've tried :
LayerUtil.convertRowPosition(selectionLayer, rowPosition, bodyDataLayer)
but it doesn't give me the good result. I think I'm doing something wrong and that someone can give me some piece of solution
Powered by FUDForum
. Page generated in 0.02250 seconds