Hello everybody,
I am having some performance issues using a newTableView with a rather complex row.
Instead of redrawing every time the row in “onRowRender” method I am trying to reuse rows. I would like to keep the row as rendered the first time even if it goes off screen.
I have tryied something like this (where createRow returns a display group):
local function onRowRender( event ) local row = event.row if (row.group == nil) then row.group = rightMenu.createRow(row) end row:insert(row.group) end
Every time the onRowRender is called the row.group property is nil and the row is redrawn.
I also tryed adding the group to row.params.group, but as soon as the rows goes off screen the display group is removed. row.params.group is not nil, but emptied and there only remains removeSelf function.
I have also tryed to insert the row display groups in an external array, but the behaviour is the same as using row.params.group
Is there a way to achieve what I am trying to do? Am I missing something?
Thank you,
Francesco