ItemTap on RadListView in Angular


How do I get the item on ItemTap in Radlistview?

I’m trying this:

onListItemTap(args: ListViewEventData){
        console.log("list item tapped");
        let stack = <StackLayout>obj.getChildAt(0);
        let lbl = <Label>stack.getChildAt(0);
        let dialogText  = lbl.text;
            message: dialogText,
            okButtonText: "OK",

I want to get the label inside the item and display it in a dialog if the item is clicked.


May I know why don’t you try accessing your data instead of accessing actual element?


Because I hadn’t thought of it :slight_smile: