PDA

View Full Version : Problem with TreeGrid and SelectionChangedEvent



vakillanet
27 Jan 2010, 2:38 AM
Hi, I have problem with TreeGrid and SelectionChangedEvent listener. If I call some method of my extends BaseTreeModel class (e.g. get("name")) from SelectionChangedEvent method, the row selected in my TreeGrid is duplicate...

treeGrid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<ModelData>() {

public void selectionChanged(SelectionChangedEvent<ModelData> se) {
se.getSelectedItem().get("name");
//or se.getSelectedItem().toString();
//but not when I call se.getSelection(), it found OK.

}
});

I use Ext GWT 2.1.0 and GWT 2.0.

Examples are attached.

Regards.

micgala
28 Jan 2010, 2:39 AM
Hi.

Can you implement a simple Test case that demonstrate this issue?