what's the command?
I tried with delay and failed.
Actually are two tabs, and when I select something in the first tab, the second tab loads the database dependence of the first tab.
Following is the most complete command:
Code:
this.store = new Ext.data.Store({
proxy: ........ (not necessary)
}),
reader: ......... (not necessary)
},
fieldsStore),
listeners: {
'load': function (ste) {
Ext.getCmp('grid-' + windowId).getSelectionModel().selectFirstRow();
}
}
});
gridRegister.superclass.constructor.call(this, {
id: 'grid-' + windowId,
height: 320,
title: 'Information',
border: true,
loadMask: {
msg: 'Loading...'
},
listeners: {
render: function (g) {
g.getSelectionModel().selectRow(0);
},
delay: 10
},
sm: new Ext.grid.RowSelectionModel({
singleSelect: true,
listeners: {
rowselect: function (sm, row, rec) {
Ext.getCmp('form-' + windowId).getForm().loadRecord(rec);
}
}
})
});