// Proposal
var gridStore, detailsStore, tree, grid, form;
tree.on('click', function(tree, record){
var promise = gridStore.load({id : record.get('id')});
...