We have a grid
@(Html.Kendo().Grid<
PatientRecord
>(Model.WorklistPatientRecords)
that has a ClientTemplateId
.ClientDetailTemplateId("grid-details-form")
Where "grid-details-form" id is in
@{ Html.RenderPartial("_DiagnosisRecordComments");
The implied model for the partial that makes up the ClientTemplate is obviously PatientRecord
Now within _DiagnosisRecordComments I have some code that looks like the following
#
new AcmeGroup.ValidationComments(ValidationCommentsViewModel);
#
ValidationCommentsViewModel is a property of PatientRecord and that works fine.
The problem is that I want to pass PatientRecord itself....the actual implied model that is used by the client template/Partial. If I use
#
new AcmeGroup.ValidationComments(PatientRecord);
#
I get an error.
What name do I use for the actual implied model that ClientDetailTemplate actually uses?