3.2.0

focused but not editable after refresh

I am trying a grid with a footer. After editing a cell, I use tab to move and edit the next cell immediately. It works fine if I don't refresh the grid. However, I need to refresh the grid to re-calculate the data on the footer after editing a cell now. If I do so, the next cell is high-lighted but not editable immediately. I have to use mouse to click the cell before I edit it. How can I improve it?

Thanks,
mrhsh
April 18,
The grid loses focus when you do full refresh. You can try to refresh footer only or return focus to the grid with the focus() method.
Alex (ActiveWidgets)
April 21,
How can I only refresh a footer? I tried grid.getFooterTemplate.refresh() to replace the grid.refresh(). The footer can't be refreshed. Actualy, I only need to refresh one cell in the footer which display the sum for whole column above it. Could you give me a sample code?

Thanks,
mrhsh
April 21,
AW.UI.Grid -

grid.getFooterTemplate(col).refresh();

AW.Grid.Extended -

grid.getFooterTemplate(col, row).refresh();
Alex (ActiveWidgets)
April 21,
It works fine. Thank you!

By the way, if I use grid.refresh() in grid.onCellEditEnded event, and use mouse click another cell after input, the browser will be crash.
mrhsh
April 21,

This topic is archived.

See also:


Back to support forum