分别创建和更新的不同弹出窗口
Different popup for create and update separately
在Kendo中是否有针对创建和更新的不同弹出窗口的解决方案。我有更新弹出窗口,但我想使用不同的弹出窗口进行创建。这是我的 Kendo 代码:
@(Html.Kendo().Grid<xxxxxx.Il>().Name("Iller")
.Columns(columns =>
{
columns.Bound(p => p.Id);
columns.Bound(p => p.IlAdi);
columns.Bound(p => p.DegistirenKullanici);
columns.Bound(p => p.DegistirmeTarihi);
columns.Bound(p => p.KayitKullanici);
columns.Bound(p => p.KayitTarihi).Format("{0:dd-MM-yyyy}");
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(250);
})
.Pageable(pageable => pageable.Refresh(true))
.Sortable()
.AutoBind(true)
.Selectable()
.Navigatable()
.Filterable()
.ToolBar(toolbar => toolbar.Create())
.Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("IlModel").Window(w => w.Width(450)).Window(w => w.Title("Düzenle")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(5)
.Events(events => events.Error("error_handler"))
.Model(model => model.Id(p => p.Id))
.Create(update => update.Action("Il_Create", "Tanimlar"))
.Read(read => read.Action("Il_Read", "Tanimlar").Data("getAdditionalData"))
.Update(update => update.Action("Il_Update", "Tanimlar"))
.Destroy(update => update.Action("Il_Delete", "Tanimlar"))
)
)
这个问题已经在 Kendo 的网站上得到了回答。这里是 link.
在Kendo中是否有针对创建和更新的不同弹出窗口的解决方案。我有更新弹出窗口,但我想使用不同的弹出窗口进行创建。这是我的 Kendo 代码:
@(Html.Kendo().Grid<xxxxxx.Il>().Name("Iller")
.Columns(columns =>
{
columns.Bound(p => p.Id);
columns.Bound(p => p.IlAdi);
columns.Bound(p => p.DegistirenKullanici);
columns.Bound(p => p.DegistirmeTarihi);
columns.Bound(p => p.KayitKullanici);
columns.Bound(p => p.KayitTarihi).Format("{0:dd-MM-yyyy}");
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(250);
})
.Pageable(pageable => pageable.Refresh(true))
.Sortable()
.AutoBind(true)
.Selectable()
.Navigatable()
.Filterable()
.ToolBar(toolbar => toolbar.Create())
.Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("IlModel").Window(w => w.Width(450)).Window(w => w.Title("Düzenle")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(5)
.Events(events => events.Error("error_handler"))
.Model(model => model.Id(p => p.Id))
.Create(update => update.Action("Il_Create", "Tanimlar"))
.Read(read => read.Action("Il_Read", "Tanimlar").Data("getAdditionalData"))
.Update(update => update.Action("Il_Update", "Tanimlar"))
.Destroy(update => update.Action("Il_Delete", "Tanimlar"))
)
)
这个问题已经在 Kendo 的网站上得到了回答。这里是 link.