PDA

View Full Version : Event when a asynchronous treePanel is completely expand



Gordon25
23 Aug 2010, 4:43 AM
Hello :)

My problem, I have a tree asynchronous and several filter. When I activate a filter, I do a "expandAll ()" on my tree. I wish I could apply my filter when the tree is completely expand.




m_functionListViewField = new SimpleCheckBoxListViewField<FunctionTypeDto>(functionListView);
m_functionListViewField.setId(getPluginId() + "_ADAPTER_FIELD");
m_functionListViewField.setName(SimpleDeviceDto.PROPERTY.FUNCTION_TYPES);
m_functionListViewField.setBorders(false);
m_functionListViewField.addListener(Events.OnClick, new Listener<FieldEvent>() {
@Override
public void handleEvent(FieldEvent fe) {
m_listFunctionTypeDto = getFunctionTypes();
m_treePanel.expandAll();
m_treePanel.getStore().applyFilters("");

}
});



Thx!