【发布时间】:2014-02-12 14:34:54
【问题描述】:
我正在使用弹出剑道网格,我使用添加新记录和编辑模式,我想在添加新记录时通过 html 助手更改弹出窗口剑道网格的标题。
<div class="k-rtl">
@(Html.Kendo().Grid<KendoSample.Models.Person>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.PersonId).Title("Person Code").Width(100).Sortable(true);
columns.Bound(p => p.Name).Title("Name").Width(200).Sortable(true);
columns.Bound(p => p.Family).Title("Family").Sortable(false);
columns.Command(c => { c.Edit().Text("Edit").CancelText("Cancel").UpdateText("save"); c.Destroy().Text("Delete"); });
})
.Pageable()
.ToolBar(s => { s.Create().Text("ایجاد"); })
.Editable(c => { c.TemplateName("Default").Mode(GridEditMode.PopUp); c.Window(x => x.Title("ویرایش")); })
.Scrollable()
.Sortable()
.HtmlAttributes(new { style = "height:430px;" })
.DataSource(dataSource => dataSource
.Ajax()
.Model(c => c.Id(p => p.PersonId))
.Create(c => c.Action("Read", "Home"))
.Read(read => read.Action("EditingPopup_Read", "Grid"))
.Update(update => update.Action("EditingPopup_Update", "Grid"))
.Destroy(update => update.Action("EditingPopup_Destroy", "Grid"))
.ServerOperation(true)
.PageSize(8)
.Read(read => read.Action("EditingPopup_read", "Home"))
)
.Sortable()
.Filterable()
)
</div>
请告诉我如何在添加模式下更改弹出窗口的标题。
【问题讨论】:
标签: c# asp.net-mvc kendo-ui popup kendo-asp.net-mvc