The view doesn't do any caching by itself. It is always the models responsibility. If you want a "retrieve on demand" approach, you have to code it yourself in the model. For example have a tree which has items and each item can be marked as "complete" or "unknown" and when data from a child of a "unknown" item is fetched, just query the database and attach new elements to the tree before returning the result. You'll have to watch for the "columnCount()" and "rowCount()" methods, because if you don't implement them right, you'll end up with filling the whole tree at the beginning.
Bookmarks