:: Forum >>

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
Friday, April 18, 2008
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)
Monday, April 21, 2008
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
Monday, April 21, 2008
AW.UI.Grid -

grid.getFooterTemplate(col).refresh();

AW.Grid.Extended -

grid.getFooterTemplate(col, row).refresh();
Alex (ActiveWidgets)
Monday, April 21, 2008
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
Monday, April 21, 2008

This topic is archived.


Back to support forum

Forum search