I'm looked through the MDC Wiki and XulPlanet but I cannot find any
clear method of adding rows to an existing tree.
How would I accomplish this?
What is the tree backed by - explicit <treeitem> elements, RDF dataset,
or custom nsITreeView implementation? In the first case, you simply
insert more <treeitem> elements into the DOM (see e.g. appendChild). In
the second, you need to update the underlying RDF dataset, and rebuild.
In the third, you call nsITreeBoxObject::rowCountChanged on the tree's
box object, and it will turn around and query your nsITreeView
implementation for information about new rows.
Igor Tandetnik
>In the second, you need to update the underlying RDF dataset, and rebuild.
>
Assuming a correctly implemented RDF data source, it will automatically
notify the tree of the updates.
--
Warning: May contain traces of nuts.
> Igor Tandetnik wrote:
>
>> In the second, you need to update the underlying RDF dataset, and
>> rebuild.
>
> Assuming a correctly implemented RDF data source, it will
> automatically notify the tree of the updates.
Ah, maybe you're thinking of the case where you update the source XML
and refresh the RDF, which does need a rebuild.