Hi,
I'm trying to display a partial view in a treelist column
This is the colum definition:
columns.Add().Field(e => e.PageID)
.TemplateId("translation-template")
.HtmlAttributes(new { @class = "center col-lg-2" });
In this codesnippit, the PageID in the first div is displayed correctly for each row in my treelist.
Now I want to use the #: PageID # to be pass into the Html.RenderAction as a parameter (instead of 4)
<
script
id
=
"translation-template"
type
=
"text/x-kendo-template"
>
<
div
>#: PageID #</
div
>
<
div
>
@{Html.RenderAction("_TranslationTemplate",
"Pages",
new { PageID = 4 });
}
</
div
>
</
script
>
Thank you!