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

[Solved] Grid column editor template

0 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gts
Top achievements
Rank 1
Gts asked on 30 Apr 2013, 11:54 AM
Hi.
I have grid
@(Html.Kendo().Grid<Worker>()
.Columns(columns =>
    {
        columns.Bound(p => p.Id);
        columns.ForeignKey(p => p.SecId, (List<UserCard>)ViewData["cards"], "Id", "Code").EditorTemplateName("GridForeignKey");
}
)
.Editable(editable => editable.Mode(GridEditMode.PopUp)
        .DisplayDeleteConfirmation(true)
        .Window(window=> window.Width(470))
       )
)

GridForeignKey - this is from Views/Shared/EditorTemplates
Grid show my second column as I want But when I edit row my secons column show like Input field, not like combobox. What I do wrong?
Tags
Grid
Asked by
Gts
Top achievements
Rank 1
Share this question
or