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

Very simple ListView rendering problem or something else?

1 Answer 50 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
user1843640
Top achievements
Rank 1
user1843640 asked on 06 Dec 2012, 10:30 PM
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.

1 Answer, 1 is accepted

Sort by
0
user1843640
Top achievements
Rank 1
answered on 07 Dec 2012, 05:25 PM
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

Tags
ListView (Mobile)
Asked by
user1843640
Top achievements
Rank 1
Answers by
user1843640
Top achievements
Rank 1
Share this question
or