cklester Well-Known Member Licensed User Dec 21, 2020 #1 I'm displaying a CustomListView and would like to automatically have the first item selected. I'd also like to trigger the Click event for that, so other views on the window/form are populated from the clv_Categories_ItemClick() sub. I was expecting something like B4X: clv_Categories.Select(0) but no such thing. Is there a way to do this?
I'm displaying a CustomListView and would like to automatically have the first item selected. I'd also like to trigger the Click event for that, so other views on the window/form are populated from the clv_Categories_ItemClick() sub. I was expecting something like B4X: clv_Categories.Select(0) but no such thing. Is there a way to do this?
Erel B4X founder Staff member Licensed User Longtime User Dec 21, 2020 #2 There is no "selection" in clv. You can add this feature with: https://www.b4x.com/android/forum/t...ion-modes-for-xcustomlistview.114364/#content cklester said: I'd also like to trigger the Click event for that, Click to expand... B4X: clv_ItemClick(0, clv.GetValue(0)) Upvote 0
There is no "selection" in clv. You can add this feature with: https://www.b4x.com/android/forum/t...ion-modes-for-xcustomlistview.114364/#content cklester said: I'd also like to trigger the Click event for that, Click to expand... B4X: clv_ItemClick(0, clv.GetValue(0))
cklester Well-Known Member Licensed User Dec 21, 2020 #3 Erel said: B4X: clv_ItemClick(0, clv.GetValue(0)) Click to expand... Works! I was already using CLVSelections, just didn't know how to trigger the _ItemClick(). Thank you! Upvote 0
Erel said: B4X: clv_ItemClick(0, clv.GetValue(0)) Click to expand... Works! I was already using CLVSelections, just didn't know how to trigger the _ItemClick(). Thank you!