我正在使用KendoUI工具进行我的Application.In我正在使用一个Kendo Grid,其中有一个工具栏点击,它向我显示一个弹出窗口,两个按钮在那里作为"更新"和"取消"并想要更改text更新为"Save".我正在使用MVC创建我的应用程序.我的代码如下:
@(Html.Kendo().Grid<Invoice.Models.ViewModels.DossierViewModel>()
.Name("Dossier")
.Columns(columns =>
{
columns.Bound(p => p.DisplayID).ClientTemplate("<a href=" + @Url.Content("~/Document/DocumentList/#= data.DossierID#") + ">#=data.DisplayID#</a>").Title("Dossier").Width(80);
columns.Bound(p => p.CustomerName).Title("Customer").Width(150);
columns.Bound(p => p.InvoiceNumber).Title("INV no.").Width(100).ClientTemplate("<a href=" + @Url.Content("~/Home/PrintInvoice/#= data.InvoiceNumber#") + " target='_blank'>#=data.InvoiceNumber#</a>");
columns.Bound(p => p.Status).ClientTemplate("#=data.Status#");
})
.ToolBar(toolbar =>
{
toolbar.Create().Text("Add New Dossier");
toolbar.Custom().Text("Search").Action("AdvanceSearch", "Dossier");
})
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("New_Dossier")) //Having Different Template for New Dossier
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(15)
.Model(model => { model.Id(p => p.DossierID); })
.Read(read => read.Action("Dossier_Read", "Dossier"))
.Create(create => create.Action("Dossier_Create", "Dossier", new { @CompanyID = …Run Code Online (Sandbox Code Playgroud)