I have a databound listview with the data being displayed via template. In my template I have a button. How can I get the associated data item when the button is clicked?
2 Answers, 1 is accepted
answered on 03 Oct 2013, 02:05 PM
The templates have access to the current dataItem through the data object. In case you are calling an external function from the template you could pass it the dataItem's uid. This will allow you to get the same dataItem from the external function. I created this small example to illustrate such behavior.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!