Re: Columns order in a XUL tree

Neil <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
guido wrote:

> I've a xul tree where some columns are defined into a .xul file and 
> some are dinamically created at run-time.
>
> Once all the columns are added to the tree, I need to change their 
> displayed order.
>
> I tried to modify the ordinal* attribute but I can't make it to work.
>
> Which one would be best method to do it?

The tree tries to maintain the order internally. In particular, the 
column ordinals are all alternate odd numbers so that splitters can be 
put in between if required. Alternatively I suppose you could try 
calling the _reorderColumn function to move your dynamic column.

-- 
Warning: May contain traces of nuts.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.