Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
updated ViewEvents demo page
Browse files Browse the repository at this point in the history
  • Loading branch information
Derick Bailey committed Sep 4, 2013
1 parent faa4503 commit a3543a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion demos/public/js/view-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ $(document).ready(function() {
},

listViewChanged: function(e){
console.log("LIST VIEW CHANGED!!!!!");
var index = e.sender.select().index();
var dataItem = e.sender.dataSource.view()[index];
this.$("#result").html("<h3>You Selected " + dataItem.ProductName + "!</h3>");
},

onRender: function(){
Expand Down
3 changes: 2 additions & 1 deletion demos/views/demos/view-events.jade
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ block javascripts
script(src="/js/view-events.js")

script#drink-list-template(type="text/html")
#result
h3 Select An Item
#listView
#pager.k-pager-wrap

Expand All @@ -18,4 +20,3 @@ block javascripts
block content
#example.k-content
.demo-section

0 comments on commit a3543a6

Please sign in to comment.