img with onclick inside a listview item template

2 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 05 Jul 2012 Link to this post

    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?
  2. Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 10 Jul 2012 Link to this post

    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?

    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!
Back to Top