Hi Violetta,
I would suggest using a function that is defined outside the template. When called using a click event handler, get the data item corresponding to the row and use it to refresh the Window's content.
Here is a JavaScript proof of concept example.
Regards,
Alexander Popov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.