Hi:
I am not able to get the change event to get triggered. I inspect the elements and the element does not appear to have been selected:
Using a <div> tag version of ListView, the event works as expected and when I inspect the element it indicates that it is selected.
Phil
I am not able to get the change event to get triggered. I inspect the elements and the element does not appear to have been selected:
<select id=
"listView3"
size=
"10"
style=
"width: 150px;"
class=
"k-list-container "
></select>
<script>
$(
"#listView3"
).kendoListView({
dataSource: [
{ id: 1, name:
"Apples"
},
{ id: 2, name:
"Oranges"
},
{ id: 3, name:
"Grapes"
},
{ id: 4, name:
"Bananas"
}
],
template:
'<option value="#: id #" class="k-item">#: name # (#: id #)</option>'
,
dataTextField:
"name"
,
dataValueField:
"id"
,
selectable:
"single"
,
change:
function
(e) {
// handle selected event
alert(
this
.select().val());
}
});
</script>
Using a <div> tag version of ListView, the event works as expected and when I inspect the element it indicates that it is selected.
Phil