Need help creating a Tree object from this flat list of Records returned by a DataSource.fetchData.
I have looked over the documentation and searched all around but cannot see how to do this.
Here is what I have
This doesn't work and as I've seen on other posts that I need to create a Tree object from this flat this and maybe do something like
However, how do I create the blah from "dsResponse.getData()"?
Do I iterate through it and create TreeNodes from Records? This just doesn't seem right though!
I have checked out the documentation but I can't seem to find what I want: http://www.smartclient.com/docs/6.0/a/b/c/go.html#class..Tree
Help appreciated, thanks.
I have looked over the documentation and searched all around but cannot see how to do this.
Here is what I have
Code:
DataSource.get("...").fetchData(criteria, new DSCallback() { @Override public void execute(DSResponse dsResponse, Object o, DSRequest dsRequest) { treeGrid.setData(dsResponse.getData()); } }, dsRequest);
Code:
treeGrid.getTree().setData(blah);
Do I iterate through it and create TreeNodes from Records? This just doesn't seem right though!
I have checked out the documentation but I can't seem to find what I want: http://www.smartclient.com/docs/6.0/a/b/c/go.html#class..Tree
Help appreciated, thanks.
Comment