For the following code :
<div class="QTFFDetail">
@(Html.Kendo().Grid(Model.Case.Investigators)
.Name("Dashboard")
.Columns(columns =>
{
columns.Template(@<text></text>).ClientTemplate("<div>Investigator : #=FirstName# #=LastName# (#=Pernr#) <a href='\\#' style='float:right;' class='openFeedbackForm'>+ Create Feedback Form</a></div>");
})
.ClientDetailTemplateId("feedbackFormTemplate")
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(p => p.Pernr))
.Read(read => read.Action("GetAllInvestigatorsForCase", "CaseSummary"))
)
)
</div>
<script id="feedbackFormTemplate" type="text/kendo-tmpl">
@(Html.Kendo().Grid<Intranet.Data.Review.Info.FeedbackFormInfo>()
.Name("FeedbackForm_#=Pernr#")
.Columns(columns =>
{
columns.Template(@<text></text>).HeaderTemplate("<div>#=SubmissionDateString# </div>");
})
.ClientDetailTemplateId("reasonTemplate")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetByInvestigator", "FeedbackForm", new { pernr = "#=Pernr#" }))
)
.ToClientTemplate()
)
</script>
... the columns.Template in the feedbackFormTemplate producs a javascript error (JavaScript runtime error: 'SubmissionDateString' is undefined) when I try to expand the row (SubmissionDateString is a property of Intranet.Data.Review.Info.FeedbackFormInfo).
I have seen a ton of nested grid examples, but none that show you how to customize a column in the child grid.
Please advise, thanks!
<div class="QTFFDetail">
@(Html.Kendo().Grid(Model.Case.Investigators)
.Name("Dashboard")
.Columns(columns =>
{
columns.Template(@<text></text>).ClientTemplate("<div>Investigator : #=FirstName# #=LastName# (#=Pernr#) <a href='\\#' style='float:right;' class='openFeedbackForm'>+ Create Feedback Form</a></div>");
})
.ClientDetailTemplateId("feedbackFormTemplate")
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(p => p.Pernr))
.Read(read => read.Action("GetAllInvestigatorsForCase", "CaseSummary"))
)
)
</div>
<script id="feedbackFormTemplate" type="text/kendo-tmpl">
@(Html.Kendo().Grid<Intranet.Data.Review.Info.FeedbackFormInfo>()
.Name("FeedbackForm_#=Pernr#")
.Columns(columns =>
{
columns.Template(@<text></text>).HeaderTemplate("<div>#=SubmissionDateString# </div>");
})
.ClientDetailTemplateId("reasonTemplate")
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetByInvestigator", "FeedbackForm", new { pernr = "#=Pernr#" }))
)
.ToClientTemplate()
)
</script>
... the columns.Template in the feedbackFormTemplate producs a javascript error (JavaScript runtime error: 'SubmissionDateString' is undefined) when I try to expand the row (SubmissionDateString is a property of Intranet.Data.Review.Info.FeedbackFormInfo).
I have seen a ton of nested grid examples, but none that show you how to customize a column in the child grid.
Please advise, thanks!