Asp.net mvc 剑道UI网格/行模板

Asp.net mvc 剑道UI网格/行模板,asp.net-mvc,razor,kendo-grid,Asp.net Mvc,Razor,Kendo Grid,我尝试使用剑道UI将图像放入网格。我对columns.Bound(c=>c.ProductPhotoID)有问题,当我对columns.Bound(c=>c.ProductPhotoID)进行注释时,网格可以编辑,但如果取消注释,网格将无法再进行编辑。我对此一无所知 @model IEnumerable<SubCateViewModel> @(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => {

我尝试使用剑道UI将图像放入网格。我对
columns.Bound(c=>c.ProductPhotoID)
有问题,当我对
columns.Bound(c=>c.ProductPhotoID)
进行注释时,网格可以编辑,但如果取消注释,网格将无法再进行编辑。我对此一无所知

@model IEnumerable<SubCateViewModel>
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
    {
        columns.Bound(c => c.ProductSubcategoryID).Width(140);
        columns.Bound(c => c.ProductCategoryID).Width(140);
        columns.Bound(c => c.NameofBike).Width(190);
        columns.Bound(c => c.Name).Width(190);
        columns.Bound(c => c.ProductPhotoID).Width(50).ClientTemplate("<img alt='<#= PictureUrl #>' src'"
            + Url.Content("~/GetImage.ashx?ID=@bike.ProductProductPhotoes.FirstOrDefault().ProductPhotoID")
            + "#= PictureUrl#.jpq'/>").Title("Picture");
        columns.Bound(c => c.isSelected).Width(120);
    })
@model IEnumerable
@(Html.Kendo().Grid(模型)
.名称(“网格”)
.列(列=>
{
columns.Bound(c=>c.productSubcategorid).Width(140);
columns.Bound(c=>c.ProductCategoryID).Width(140);
columns.Bound(c=>c.NameofBike).Width(190);
columns.Bound(c=>c.Name).Width(190);
columns.Bound(c=>c.ProductPhotoID).Width(50).ClientTemplate(“”).Title(“图片”);
columns.Bound(c=>c.isSelected).Width(120);
})

谁能告诉我
columns.Bound(c=>c.ProductPhotoID)发生了什么事
,并帮助我在高级中将图像放入网格。我真的很感激!我遵循这一点。

您使用的示例是使用ClientRowTemplate。您尝试过使用它吗?阅读此链接只是一个示例,我希望它能帮到您@Nilesh我使用ClientRowTemplate时,它不起作用。您能告诉我怎么做吗?@Jaimin我可以把我的
Controller
了解更多信息?@TrungPham是的,您可以。