TreeNode Expandable

  1. #1

    TreeNode Expandable

    Hello,

    Question regarding TreeNodes and the Expandable property. Would there be any way to have Expandable set as ThreeStateBool.True and render as the folder without the expand icon showing if it has no children?

    Cheers,
    Timothy
  2. #2

    RE: TreeNode Expandable

    Hi Timothy,

    Can you provide more details? What nodes used: static or async? It is better to know what targets you want to reach.
    Thanks
    *
  3. #3

    RE: TreeNode Expandable

    Hello vlad,

    They are static nodes.

    Cheers,
    Timothy
  4. #4

    RE: TreeNode Expandable

    Hi Timothy,

    May be I misunderstood you but if you don't set Leaf=true for TreeNode then it will be looked as folder and without expandable icon. Why need to set Expandable=ThreeStateBool.True?




  5. #5

    RE: TreeNode Expandable

    Hello vlad,

    Thanks for the quick response vlad. I would like the node with no children to look like the nodes that have children, because eventually it will have children. I don't want it to look like the file, consider it as a directory in your file explorer with no folders below it.

    Hope that makes sense?

    Cheers,
    Timothy
  6. #6

    RE: TreeNode Expandable

    Hi Timothy,

    Now you can set image only. For example if you want to have standart folder image then


    <ext:TreeNode Text="Empty Folder" Cls="x-tree-node-collapsed ">
    </ext:TreeNode>*


    I think it will be useful to have something like AsEmptyFolder="true" for TreeNode. We will investigate it


  7. #7

    RE: TreeNode Expandable

    Thanks vlad, please update this thread if anything progresses with a new property.

    Cheers,
    Timothy
  8. #8

    RE: TreeNode Expandable

    Any progress on this yet? Having a node with an expand symbol, without any children, is definitely useful in cases where you want to show the node may have children and allow clicking on the expand symbol. I did notice this seems to be possible in one of the TreePanel Ajax examples, but can't figure out how to implement it. In standard windows controls, the property is called .ContentsUnknown. If set to True, it renders an expand symbol, regardless if it has children or not.

Similar Threads

  1. Replies: 0
    Last Post: Dec 10, 2009, 11:14 AM
  2. add tab treenode and node
    By robsonjose in forum 1.x Help
    Replies: 2
    Last Post: Oct 14, 2009, 10:08 AM
  3. Tooltip of TreeNode
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 2
    Last Post: Sep 10, 2009, 4:32 PM
  4. Abort TreeNode!
    By lily in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2009, 12:03 PM
  5. [CLOSED] Getting TreeNode by id?
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 25, 2009, 10:25 AM

Posting Permissions