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

Which Item Selected

3 Answers 90 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 30 Oct 2012, 02:42 PM
This has to be about as basic as it gets. How does one determine the item selected in the "change" event handler?

3 Answers, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 1
answered on 07 Dec 2015, 04:38 PM
I'd like to see an example of this also.  In the example in the documentation for the change event, the function to handle the event simply includes a comment "// handle event".  It would be nice to see an example of identifying the selected data item.
0
Venelin
Telerik team
answered on 10 Dec 2015, 09:44 AM
Hello Kevin,

Actually the case is the same as with the grid widget. Here you can see how the event is handled: 
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-change

With the listview respectively: http://dojo.telerik.com/@vpetrov/atAWa

Regards,
Venelin
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kevin
Top achievements
Rank 1
answered on 10 Dec 2015, 02:13 PM
Thanks for sharing.  This is definitely a better approach than what I came up with.
Tags
ListView
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 1
Venelin
Telerik team
Share this question
or