Bug? (Solved) B4i ExpandableTableView class

klaus

Expert
Licensed User
Longtime User
In the attached example with 3 items, all have childs.
Item 2 has 5 Childs and Child 5 has 3 Grandchilds.

Click on Item 2 to open it
Click on Child 5 to open it
Click on Child 5 to close it
The problem is that when Child 5 closes Item 3 disappears.

Is this a bug or what am I doing wrong ?
 

Attachments

  • TestTableView.zip
    4.8 KB · Views: 255

klaus

Expert
Licensed User
Longtime User
Hi Erel,
I had a closer look at the ExpandableTableView class code.
In the tv_SelectedChanged routine, changing the line below:
If c2.CCP.Level = c.CCP.Level Then Exit
to
If c2.CCP.Level <= c.CCP.Level Then Exit
seems to solve the problem.
 
Last edited:
Top