The Row Template Function and Alt Row Template Function properties allow you to specify a function that processes the template and returns the result of executing the template for the data.
The code for this function is defined in the controller.public.js file for a given grid view found at the following location: