Here is my grid:
@(Html.Kendo().Grid<AssetViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(e => e.AssetId).Title("Asset").ClientTemplate(Html.Kendo().Template().AddComponent(avatar => avatar
.Avatar()
.Name("avatar_${data.AssetId}")
.Type(AvatarType.Image)
.Size(ComponentSize.Large)
.Rounded(Rounded.Full)
.Image(@Url.Action("GetFile", "MediaStore", new { fileId = "${data.LogoId}" }))
)).Width(110);
columns.Bound(e => e.AssetName).Title("Full Name").Width(200);
})
.Sortable()
.Pageable()
.Scrollable()
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(5)
.Read(read => read.Action("AssetListData", "Revenue"))
)
)
I have tried specifying as "#:AssetId#", "#=AssetId#" , and ${data.LogoId} but the parsing is not correct at runtime:
<span class="k-avatar-image"><img src="/MediaStore/GetFile?fileId=$%7Bdata.AssetId%7D"></span>
Ho do I get the LogoId properly?