klaus Expert Licensed User Longtime User Mar 20, 2015 #1 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: 260
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 ?
klaus Expert Licensed User Longtime User Mar 20, 2015 #2 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: Mar 20, 2015
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.
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2015 #3 Thank you Klaus. Your solution is correct. I've uploaded a new version: https://www.b4x.com/android/forum/threads/class-expandabletableview-tree-view.50743/
Thank you Klaus. Your solution is correct. I've uploaded a new version: https://www.b4x.com/android/forum/threads/class-expandabletableview-tree-view.50743/