Editor template doesn't work in child Kendo Hierarchy Grid

3 posts, 0 answers
  1. Rudy
    Rudy avatar
    5 posts
    Member since:
    Mar 2012

    Posted 02 Dec 2014 Link to this post

    Dear all,

    I am confused why my editor template doesn't work in the child grid then I used ("\\#=EditorTemplateName\\#") but it still didn't work . But if I use the editor template in the parent grid, it works. Do anyone here could help me?

    Regards,

    Rudy
  2. Rudy
    Rudy avatar
    5 posts
    Member since:
    Mar 2012

    Posted 02 Dec 2014 Link to this post

    this is my script for the child grid

    columns.Bound(o => o.Status).EditorTemplateName("\\#=StatusEditor\\#").Width(40);

    But it still didn't work.

    Please anyone help me

    Regards,

    Rudy
  3. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 04 Dec 2014 Link to this post

    Hi Rudy, 

    The EditorTemplate content  is created by the ASP.NET MVC framework on the server. Then this generated html is serialized as template and instantiated on the client-side when in edit mode. Thus, its name cannot contains client-side template expressions.

    The the code in question will instruct the ASP.NET MVC framework to try to find a EditorTemplate which name is \\#=StatusEditor\\# - I guess, such template does not exist in your application.

    Regards,
    Rosen
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top