PDA

View Full Version : [SOLVED] How to "scroll by" a GridPanel programatically?



Pachat
19 Jan 2010, 12:15 AM
When using the RowEditor, I want to add a row at the bottom of my grid.
Which I can achieve this way

editor.stopEditing();
store.add(e);
table.getView().refresh();
var pos = store.getCount() - 1;
table.getSelectionModel().selectRow(pos);
editor.startEditing(pos, 1);
The problem is that the "OK" "Cancel" buttons which are under the row are hidden.
The user has to manually scroll down to make them appear.

How can I do this scroll (by a fixed height : the height of the buttons) to make the buttons appear programmatically ?

The solution is here (http://www.extjs.com/forum/showthread.php?p=409346#post409346)