In Development
Last Updated: 06 Jun 2025 09:10 by ADMIN

### Bug report

When defining custom editors in the OrgChart form by using EditorTemplateView() or EditorTemplateId() options, the editors are not initialized as expected.

### Reproduction of the problem

1) Define a DropDownList editor in a partial View and load it through the EditorTemplateView() option:

@(Html.Kendo().OrgChart<OrgChartEmployeeViewModel>()
                .Name("departmentsChart")
                .Editable(edit =>
                {
                    edit.Form(form => form
                      .Items(i =>
                      {
                         i.Add().Field(x => x.ParentDepartment).EditorTemplateView(Html.Partial("~/Views/Shared/EditorTemplates/ParentDepartmentDropDown.cshtml"));
                      }));
                })
                ...
)

// ~/Views/Shared/EditorTemplates/ParentDepartmentDropDown.cshtml
@model OrgChartEmployeeViewModel

@(Html.Kendo().DropDownListFor(m => m.ParentDepartment)
    .OptionLabel("-None-")
    .DataTextField("Text")
    .DataValueField("Value")
    .DataSource(source =>
    {
	    source.Read(read => read.Action("ReadDepartments", "Home"));
    })
)

2) The DropDownList is not initialized when opening the OrgChart form.

### Expected/desired behavior

The editors defined through the EditorTemplateView() or EditorTemplateId() options must be initialized correctly.

### Environment

* **Kendo UI version: 2025.2.520
* **jQuery version: 3.7.1
* **Browser: [all]