O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building asynchronous trees

If you are like me and have been following the recipes in this chapter (and probably the entire book) in sequence, you will have noticed that, in the previous recipes, we were loading the TreeStore instance bound to the TreePanel instance with a huge dataset, all at once. This is not always practical and may not be what you want. You may want to only load the nodes within a given parent first, and then load children of those nodes from the server on demand — usually when the node is clicked.

It turns out that building this sort of asynchrony into TreePanel is so trivial that we don't have to do anything special besides:

  • Loading data into the TreeStore instance from a TreeLoader instance that fetches the actual data using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required