Hi Guys..
I have a problem when i try to refesh my celltree DataProviders.
i have a flow panel where i add my trees, i am using
DragAndDropCellTree with a custom TreeViewModel..
When i drop from one list to my tree the provider updates and my tree
does also. but when i remove the last child, the tree stays open but
does not update to tell me there is no more data, and the ui breaks...
I have a AsyncCallBack witch gets the data and populates the tree as
following...
// Updates the providers stored insides the Celltrees
if(couterTeams == result.size())
{
for (int i = 1; i <
result.size(); i++)
{
DragAndDropCellTree
cellEmployee =
(DragAndDropCellTree)flowPnlTeams.getWidget(i-1);
TeamTreeModel model =
(TeamTreeModel)cellEmployee.getTreeViewModel();
List<Employee> elist =
new ArrayList<Employee>();
elist.clear();
for (Employee employee
: result.get(i).getEmployees())
{
elist.add(employee);
}
model.getEmployeeProvider().setList(eList);
}
}
// Creates the Celltrees if they are not already created
else
{
flowPnlTeams.clear();
for (int i = 1; i <
result.size(); i++)
{
DragAndDropCellTree
cellEmployee = new DragAndDropCellTree(new
TeamTreeModel(result.get(i)),null,ICellTreeResource.INSTANCE);
cellEmployee.setSize("170px", "100%");
cellEmployee.setAnimationEnabled(true);
cellEmployee.addStyleName("TeamFlowComponent");
flowPnlTeams.add(cellEmployee);
}
couterTeams = result.size();
}
What am i doing wrong...
please hjelp me with this.. i have tried everthing posible but its
seams there is a bug in the celltree or i am missing somwthing...?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.