PDA

View Full Version : Problem of timing while expanding a node and then select a node



Elfayer
26 Sep 2012, 7:10 AM
Hi,
When I expand the node and then try to select one of the expanded node, it don't select it because the parent node isn't already expanded. I mean there is a problem of timing. If I put an alert between the two lines, when I click on 'ok', it will select the node. So I need something that wait the node to be expanded and then select the one I want.


treePanel.expandPath(treePanel.getSelectionModel().getSelection([0].getPath());

treePanel.getSelectionModel().select(treePanel.getStore().getNodeById(record.data.fil_id));

mitchellsimoens
28 Sep 2012, 7:53 AM
Is this a racing condition based on the node expanding (animating)?