locked
How to get DOM element that hosts listview item?

    Question

  • Hi,

    I want to show a flyout with the selected listview item as the anchor.  The listview have selectionMode as 'single'.

    Is there any way to get DOM element that hosts the listview item?

    With the iSelection interface I can get only the index and data but not the element that hosts it.

    I can use querySelectorAll and get all listview items and iterate over each one to find the element selected. But it looks like an expensive operation! Any other way?

    Saturday, February 09, 2013 6:19 AM

Answers