Hello!
I want editing as here http://www.kendoui.com/code-library/mvc/grid/using-multiselect-in-grid.aspx and
I have Model:
and Grid: (1.png)
And if I click Edit I see this: 2.png
But I want :
first Wetness first Coeff
second Wetness second Coeff
..... ......
how to display also to and edit
how I can this do?
(I can pass my model to EditorTemplates and use:
@foreach(Type item in Model)
{
......)
There are other ways?)
I want editing as here http://www.kendoui.com/code-library/mvc/grid/using-multiselect-in-grid.aspx and
I have Model:
public class ShrinkCoeffModel { [Display(Name = "thickness")] public virtual int Thickness { get; set; } [Display(Name = "wett")] public virtual string[] Wetness { get; set; } [Display(Name = "coeff")] public virtual decimal[] Coeff { get; set; } }@( Html.Kendo().Grid(Model) .Name("ShrinkCoeff") .ToolBar(commands => { commands.Create(); }) .Columns(columns => { columns.Bound(o => o.Thickness); for (int i = 0; i < Model.FirstOrDefault().Wetness.Count(); i++) { columns.Bound(o => o.Wetness[i]); } columns.Command(command => { command.Edit(); command.Destroy(); }).Width(210).Title("Действия"); }) .Editable(editable => editable.TemplateName("Item").Mode(GridEditMode.PopUp)) .DataSource(dataBinding => dataBinding .Server() .Model(model => model.Id(o => o.Thickness)) .Update("Edit", "ShrinkCoeff") .Create("Create", "ShrinkCoeff") .Destroy("Delete", "ShrinkCoeff")) .Pageable() .Sortable() .Selectable())But I want :
first Wetness first Coeff
second Wetness second Coeff
..... ......
how to display also to and edit
how I can this do?
(I can pass my model to EditorTemplates and use:
@foreach(Type item in Model)
{
......)
There are other ways?)