134
Views
3
Comments
Solved
[Hierarchical Tree] Multiple sibling collapses!
Question
hierarchical-tree
Web icon
Forge asset by Ângelo Sousa

Tree collapses another sibling branch when we have part of the name.  For example with below tree whenever I collapse child1,newchild1 also collapses

Parent

    Child1

    newchild1

2018-05-30 16-28-55
Gopinath Reddy Reddigari
Solution

Hi Antony,

The problem is with two branch having some part of same name. Below is what need to be done.

1. In your DB, Change the sort from Parent|child1 to |parent|child1|

2. In the HierarchicalTreeCore module, go to Tree_ShowLess action and change the Child record? condition to

Index(TreeList.Current.Sort,"|"+ListFilter.FilteredList.Current.Name+"|",0,False,False) <> -1 

 


2020-05-10 09-06-41
Anthony Paul

That worked!! Thanks Gopi

2018-11-12 10-02-08
Ângelo Sousa

Hello guys


Thank you Antony for catching that bug and thank you Gopi for the solution for it. 


I'll try to upload a new version of the component during the weekend to fix this issue


Best regards 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.