or
<
script
id
=
"Load_PCSO"
type
=
"text/kendo-templ"
>
<
h3
>Power Cost Savings</
h3
>
@(Html.Kendo().Grid<
PowerCostSaving
>()
.Name("PCSO_#=SiteId#")
.Columns(columns =>
{
columns.Bound(p => p.Id).Width("50px").ClientTemplate(Html.ActionLink("#=Id#", "PowerCostSavingEdit", "Account", new {siteId = "#=SiteId#", powerCostSavingId = "#=Id#"}, null).ToString());
columns.Bound(p => p.Id);
columns.Bound(p => p.Type).Width("150px");
columns.Bound(p => p.FollowUpDate).Width("100px").HtmlAttributes(new {style = "text-align: center"});
columns.Bound(p => p.Lead).Width("150px");
columns.Bound(p => p.Savings).Width("100px").HtmlAttributes(new {style = "text-align: right"});
columns.Bound(p => p.Status).Width("100px");
columns.Bound(p => p.DateOfStatus).Width("100px").HtmlAttributes(new {style = "text-align: center"});
})
.DataSource(dataSource => dataSource.Ajax()
.PageSize(20)
.Read(read => read.Action("PSCO_Load", "AccountReview", new { siteId = "#=SiteId#"}))
.ServerOperation(true))
.HtmlAttributes(new { style = "width: 800px;" })
.ToClientTemplate()
)
</
script
>
If you look at the attached image, you will noticed that the id in the hyperlink in the first column differs from the id in the second column. I would like the hyperlink to use the id in the second column.
Thank You,
Arthur
@(Html.Kendo().Grid<
Zeus.Models.QuestionGroup
>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.Id);
columns.Bound(p => p.Name);
})
.HtmlAttributes(new { style = "margin:10px;height:230px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Answers2", "Survey"))
)
)
public ActionResult Answers2()
{
/* SNIP */
Models.Survey survey = modelSurvey.GetFull();
/* SNIP */
return Json(survey.QuestionGroups);
}