Announcement

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

    TreeGrid – How to indicate empty folders

    Hello,

    In the following tree grid, there is always a plus sign (in enterprise skin), that false indicate that the folder has contents in it and that this folder could be opened:

    Code:
    isc.TreeGrid.create({
        "width": "100%",
        "height": "100%",
        data: isc.Tree.create({
            "ID": "tripsTree_3",
            "rootVisible": false,
            "modelType": "children",
            "openProperty": "isOpen",
            "root": {
                "title": "Root",
                "id": "1",
                "children": [{
                    "title": "Empty Folder",
                    "isFolder": true,
                    "isOpen": false
    
                },
                {
                    "title": "Folder with children",
                    "isFolder": true,
                    "isOpen": false,
                    "children": [{
                        "title": "Child one"
    
                    },
                    {
                        "title": "Child two"
                    }]
                },
                {
                    "title": "Another empty folder",
                    "isFolder": true,
                    "isOpen": false
                }]
            }
        })
    })
    All three folders look the same, when closed. Please see the attachments.

    How could I create a tree grid, where the plus sign only exists on the folder “Folder with children”?

    Regards Thomas
    Attached Files

    #2
    Provide an empty children array.

    Comment


      #3
      Thank you! That did the trick.

      Greetings, Thomas

      Comment

      Working...
      X