Hi,
I'm trying to use HTML.ActionLink in ClientTemplate, and I fail to pass arguments into ActionLink.
new { path = "<#= DataPath #>" } - doesn't work.
Any ideas how to "inject" the value into route values?
I'm trying to use HTML.ActionLink in ClientTemplate, and I fail to pass arguments into ActionLink.
new { path = "<#= DataPath #>" } - doesn't work.
Any ideas how to "inject" the value into route values?
@(Html.Kendo().Grid<Admin.Models.FileToken>().Name( "mygrid" ) .Columns( columns => { columns.Bound( f => f.Title ).Width( "70%" ); columns.Bound( f => f.Size ).Width( "20%" ).Format( "{0:N2}MB" ); columns.Bound( f => f.DataPath ).Width( "10%" ) // Doesn't work .ClientTemplate(Html.ActionLink( "Run", "ProcessFile", new { path = "<#= DataPath #>" } ).ToHtmlString() ); } ) .DataSource( source => source .Ajax() .Model( model => model.Id( key => key.DataPath ) ) .Read( reader => reader.Action( "GetDataFileTokens", "Dashboard" ) ) ) )