[SOLVED] TreeView Expand and Collapse Behaviour

Answered Closed
0
0

Hi,

After populating a treeview and expandall() in form load event, the plus (+) sign on the left-side of the node doesn’t change to minus (-) sign. (See image # 1.)

However, if I just populate the treeview (see image # 2) and then use the “Expand All” button, plus (+) sign is changed to minus (1) sign after expanding (see image # 3) which I believe is the correct behaviour.

If I click on “Collapse All” button, the treeview becomes totally invisible including the root node (image # 4).

I also noted that ShowLines property is not available. Is it by design?

Using Build 1.2.20.0

Thanks.

 

  • You must to post comments
Best Answer
0
0

Hi Cris,

WJ-7410 and WJ-7411 are both fixed in build 1.2.22 that can now be downloaded.

Best regards
Frank

  • You must to post comments
0
0

Hi Luca,

Tested with a Blue-1 theme and it looks perfect now. Will try WinMerge.

Thanks.

  • You must to post comments
0
0

Hi Cris,

You shouldn’t have to redo the theme. The json files are easy to merge with tools like WinMerge. In this case the change is limited to the tree item appearance. The indent value is the same as the tree file and it has a new left padding value.

HTH

Best,
Luca

  • You must to post comments
0
0

Hi Luca

Yes. The theme file I’ve been playing with is the culprit.

The changes you made on the theme are not in the custom theme yet. I can still recall, at one point, you also made changes to the themes and I had to restart all over again in creating a custom theme. If case like that, is there an easy way I can include into my custom theme changes like these without starting over again based on revised theme?

And based on the images shown above, they look OK now.

Thanks

  • You must to post comments
0
0

Hi Cris,

The indentation issue was fixed in the themes. Maybe you are using a custom theme? It was a missing padding and the indent was too large on tree items. The tree nodes are themed with two different appearances, one for tree folders (with children) and one for tree items.

I tried your sample to make sure, see my screenshot:

  • You must to post comments
0
0

Hi Frank,

ExpandAll & CollapseAll seem to be OK now but it looks treenodes without children are still not indented correctly (WJ-7411). This may be due to +/- sign when a node has a child. And also, please consider if treeview.CheckBoxes is set to true.

Using 1.2.22.0

Thanks.

Attachment
  • You must to post comments
0
0

Hi Cris,

I have logged WJ-7410 and WJ-7411 for the problems with collapsing and display of tree view nodes.

Unfortunately we can´t support ShowLines, so yes, it´s by design.

Hope that helps.

Best regards
Frank

  • You must to post comments
Showing 7 results