Pere Vinyes Member Licensed User Longtime User Jun 9, 2020 #1 Dear all, I have a question: In the main Layout there are a xCustomListview (CLV1) that contains a layout.pnl (p.LoadLayout("Items3") containing another xCustomListview (CLV2) that have a Checkbox (CHK1). All works as expected and a click on CHK1 is correctly fired. The question is: How may I read the status of CHK1... I mean the index of CLV1 and CLV2 of the CHK1 clicked? Thank you!
Dear all, I have a question: In the main Layout there are a xCustomListview (CLV1) that contains a layout.pnl (p.LoadLayout("Items3") containing another xCustomListview (CLV2) that have a Checkbox (CHK1). All works as expected and a click on CHK1 is correctly fired. The question is: How may I read the status of CHK1... I mean the index of CLV1 and CLV2 of the CHK1 clicked? Thank you!
Erel B4X founder Staff member Licensed User Longtime User Jun 10, 2020 #2 The recommended way to nest lists: CLVNested - Allows nesting CLVs About your question, for newer custom views the way to do it is explained here: [B4X] How to get <custom view here> from <CLV or any other container> However xCLV doesn't set the tag so you will need to do it yourself. Code: Copy p.LoadLayout("Items2") p.Tag = CLV2 'CLV2 will point to the last added one Later: Code: Copy Dim clv As CustomListView = CLV.GetPanel(x).Tag Upvote 0
The recommended way to nest lists: CLVNested - Allows nesting CLVs About your question, for newer custom views the way to do it is explained here: [B4X] How to get <custom view here> from <CLV or any other container> However xCLV doesn't set the tag so you will need to do it yourself. Code: Copy p.LoadLayout("Items2") p.Tag = CLV2 'CLV2 will point to the last added one Later: Code: Copy Dim clv As CustomListView = CLV.GetPanel(x).Tag