I am not sure I fully understand the question, but it is not possible to access a value created, and evaluated on the client, in the server-side code. You can pass C# variables to the template, e.g.:
var test =
"<tr data-uid='#: uid #'>"
"<span class='title'>#: Title # "
+ @test +
... but not the other way around.
Further information about Kendo UI templates is available in the following section of our documentation:
You can also inspect the Grid row template online demo
(also available in the offline demos application
I hope this helps.
Telerik by Progress