Very simple ListView rendering problem or something else?

2 posts, 0 answers
  1. user1843640
    user1843640 avatar
    8 posts
    Member since:
    Oct 2006

    Posted 06 Dec 2012 Link to this post

    I have a very simple listview bound to an items array in a very simple viewmodel.  The listview also has a click binding.  At first I thought that the click handler was not getting the dataitem but there is something else going on.  Before each item in the listview another row is being rendered.  Clicking this row gets us our dataitem.  Clicking the row with the item name in it does not.

    Much easier if you see it so here is the jsfiddle: http://jsfiddle.net/HRuvg/

    Clicking on the actual item doesn't work but if you click on the space above each item, it fires properly.   I must be missing something obvious because it doesn't get any simpler that this.
  2. user1843640
    user1843640 avatar
    8 posts
    Member since:
    Oct 2006

    Posted 07 Dec 2012 Link to this post

    This was caused by the the LI in the template which is not needed because the ListView creates these tags for you.  See this post as well:  Proper way to edit items in a listview when using Kendo UI Mobile & MVVM

  3. Kendo UI is VS 2017 Ready
Back to Top