This is a migrated thread and some comments may be shown as answers.

img with onclick inside a listview item template

1 Answer 197 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 05 Jul 2012, 04:43 PM
I have an image with an onclick event that's part of a listview item template. Everything works fine - except that when I click the image it fires the listview's change event, and then it fires the img onclick event.I'd like to prevent the change event from firing, or to be able to identify the change event as relating to the img click (then I could ignore it).

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 10 Jul 2012, 09:12 AM
Hello Kenneth,

I am not sure I understand your scenario. Can you please provide the code you are using for that view? I am not sure what is causing the dataSource to trigger the change event. Or probably you are talking about the click event of the listview?


Regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView (Mobile)
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or