I have a partial MVC view called _user.cshtml that displays some basic information about a user:
@model UserVM
<p>
<span>Name: </span>@Model.Name
<span>Email: </span>@Model.Email
</p>
In the parent view I have an MVC Kendo Grid:
@model ImportUsersVM
@(Html.Kendo().Grid(Model.Items)
.Name("ImportUsers")
.Columns(columns =>
{
columns.Bound(i => i.Status);
columns.Template(i => Html.RenderPartial("_user", i.Payload));
})
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(100)
.ServerOperation(false)
)
)
The highlighted line above doesn't work -- the user information is not rendered.
How can I include an MVC partial on each row of the grid?
Thank you