Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Can't get custom command button to invoke an action in my controller.

$
0
0

I am trying to use the example above:

columns.Template(@<text></text>).ClientTemplate("<a href='"+Url.Action("Edit","Home")+"/#=PersonID#'>Edit</a>");

but keep on receiving the following error whenever I have @<text></text>

"Cannot convert lambda expression to type 'string' because it is not a delegate type"

Why is it that I cannot use @<text> in my Razor code to explicitly define this content?


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>