elbino
5 Oct 2010, 6:02 AM
Hallo there,
I had to migrate a web application from extjs 2.x to 3.1.1. I fixed most of the bugs that came up as a result of the migration. But not there seems to be one left that says:
"grid.getBottomToolbar().onClick is not a function"
grid is an Ext.grid.EditorGridPanel.
Firebug brings up an error when clicking a button. The button handler does:
handler: function(btn, e){
grid.getBottomToolbar().onClick("last");
addTableRow(store);
grid.getSelectionModel().select(store.getCount() - 1,0);
This worked with extjs 2.x. Any idea what's wrong?
Thanks and greetings,
Thomas
I had to migrate a web application from extjs 2.x to 3.1.1. I fixed most of the bugs that came up as a result of the migration. But not there seems to be one left that says:
"grid.getBottomToolbar().onClick is not a function"
grid is an Ext.grid.EditorGridPanel.
Firebug brings up an error when clicking a button. The button handler does:
handler: function(btn, e){
grid.getBottomToolbar().onClick("last");
addTableRow(store);
grid.getSelectionModel().select(store.getCount() - 1,0);
This worked with extjs 2.x. Any idea what's wrong?
Thanks and greetings,
Thomas