2016-07-27 4 views
0

다른 질문을 본 적이 있지만 지금까지 모든 작업을 수행 한 것처럼 보입니다. 제목에서 내 열 중 하나에 대해 팝업 드롭 다운 목록을 필드의 필드로 사용하려고합니다.Kendo UI - MVC Grid의 DropdownList 팝업 편집/작성

Index.cshtml : DeptDropdown.cshtml/조회/공유/EditorTemplates의 내부 그리고

.Columns(columns => 
    { 
      columns.Bound(p => p.DEPT_ID).Width("7%").Title("Dept/ Sector").EditorTemplateName("DeptDropdown"); 
      ... 
    } 

: Version_Utility_Model.cs의 내부 그리고

@model MVCFinalHope.Models.Version_Utility_Model 
@(Html.Kendo().DropDownListFor(m => m.DeptLookup) 
    .Name("DEPT_ID") 
    .DataValueField("DEPT_ID") 
    .DataTextField("DEPT_ID") 
    .BindTo(Model.DeptLookup) 
) 

:

[UIHint("DeptDropdown")] 
public List<V_TE_DEPT_LKUP> DeptLookup { get; set; } 

답변

0

독립형 사용자 정의 필드 편집기는 팝업 편집 모드에서 작동하지 않습니다. 당신은 전체 편집 양식 템플릿을 사용해야합니다 그리드 팝업 편집을 위해 구성되어있는 경우

https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/custom-popup-editor

http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/grid/templating/editor-templates

의 Html.EditorForModel 편집기 HTML을 가져 오는 데 사용됩니다 전체 모델.

관련 문제