The model that ClientDetailTemplateId uses

2 posts, 0 answers
  1. James
    James avatar
    17 posts
    Member since:
    Sep 2014

    Posted 29 Jun Link to this post

    We have a grid 


    that has a ClientTemplateId


    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?





  2. Dimo
    Dimo avatar
    8331 posts

    Posted 01 Jul Link to this post

    Hi James,

    The client detail template uses a model that is passed on the client (from the expanded master row) and is only available inside the client-side Kendo UI template markup. This is shown in the following demo:

    I am afraid it is not possible to use this model in server-side expressions.

    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Kendo UI is VS 2017 Ready
Back to Top