Tree Pane Enhancement/Question


#1

I would like to make a tree pane that shows the items as checkboxes.
For example the following markup

8 Total PS [-][x] 5 RF Network PS .[-][x] 3 Mission PS (In Display) ..[x] PSID 400 ..[x] PSID 401 ..[x] PSID 402 .[+] [x] 2 Other PS [-] [x] 3 External PS .[-] [x] 1 Gulf Port CR ..[x] PSID 2100 .[+] [ ] 2 Shaw CR

Notice how the items in the tree have check boxes that precede the item


Intermediate check box state in tree pane items
#2

Hi @Chris_Neal,

Sorry for the hassle with this. It is due to the fact that the parser checks for only one item/icon per line.

Here’s a quick workaround to help with this: you can use two Tree Pane controls and split the data between the two.

For your example, try using the following data:
First Tree Pane:
8 Total PS
[-]
.[-]
…[x] PSID 400
…[x] PSID 401
…[x] PSID 402
.[+]
[-]
.[-]
…[x] PSID 2100
.[+]

Second Tree Pane:

[x] 5 RF Network PS
…[x] 3 Mission PS (In Display)

…[x] 2 Other PS
.[x] 3 External PS
…[x] 1 Gulf Port CR

…[ ] 2 Shaw CR

Then, make the second one transparent and overlay the first one (you can also group them if needed). Here is the result:

Hope this helps! We’re here and happy to help if you need anything else. :slightly_smiling:


#3

Great idea. A bit more work but should be ok.