Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Tree folders without children have a strange behaviour

    Hi,

    When you set the isFolder attribute for a tree node without children and you open it, the tree resets itself. I understand that it should not do anything: it just an empty folder.

    Changing the attribute isFolder of course does work, but you lose the icon. Of course you could add it manually or in the XML, but this seems a dirty way of doing it.

    Do you know if I'm missing something ? I just want to show the node with a folder icon but obviously if it's empty don't cause strange behaviors.

    Best regards,
    Juan

    #2
    isFolder marks something as a folder, which by default is assumed to have not yet loaded it's children (not to be empty). If this folder is intended to be empty, provide an empty children array (this is expressed as an empty element in XML). If this tree is never meant to load data on demand (the whole tree is loaded at once) set loadDataOnDemand false.

    Comment

    Working...
    X