This is a migrated thread and some comments may be shown as answers.

Editor template doesn't work in child Kendo Hierarchy Grid

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rudy
Top achievements
Rank 1
Rudy asked on 02 Dec 2014, 12:52 PM
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 Answers, 1 is accepted

Sort by
0
Rudy
Top achievements
Rank 1
answered on 02 Dec 2014, 12:56 PM
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
0
Rosen
Telerik team
answered on 04 Dec 2014, 09:25 AM
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.

 
Tags
Grid
Asked by
Rudy
Top achievements
Rank 1
Answers by
Rudy
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or