or

@(Html.Kendo().Grid<VideoGames.Game>(Model) .Name("theGrid") .Columns(c => { c.Bound(p => p.Name).Width(200); c.Bound(p => p.Price).Format("{0:c}").Width(100); c.Bound(p => p.Genre).Width(100); c.Bound(p => p.ImageUrl).ClientTemplate("<img src='#= ImageUrl #' alt='' />").Width(150); c.Command(cmd => { cmd.Edit(); }); }) .Editable(editable => editable.Mode(Kendo.Mvc.UI.GridEditMode.InCell)) .Pageable() .ToolBar(c => c.Save()) .DataSource(d => d.Ajax() .Model(m => m.Id(p => p.Name)) .Update(c => c.Action("UpdateGame", "Home"))) )$("#theGrid").kendoGrid({ dataSource: { data: data, batch: true, schema: { model: { id: "GameID", fields: { GameID: { editable: false, nullable: true }, Name: "Name", Price: { type: "number" }, ReleaseDate: { type: "date" }, Genre: "Genre", Rating: "Rating", } } } }, transport: { update: { url: "/home/updategame", success: onUpdateSuccess, error: onUpdateError } } toolbar: [ "Save" ], height: 400, editable: true, scrollable: true, columns: [ { field: "Name", title: "Title" }, { field: "Price", title: "Price", format: '{0:c}' }, { field: "ReleaseDate", title: "Rel Date", template: '#= kendo.toString(ReleaseDate,"MM/dd/yyyy") #' }, { field: "Genre" }, { field: "Rating" }, ], });columns.Command(command => { command.Custom("Details") .Text("<i class=" + "icon-globe" + "></i> Details") .SendDataKeys(true) .Click("archiveAppliance") .HtmlAttributes(new { @style = "width:100px" }); }).Width(110); })w
.Editable(editable =>
editable.DisplayDeleteConfirmation("Är du säker på att du vill ta bort detta Delområde?")
.Mode(GridEditMode.PopUp)
.TemplateName("PartAreaEdit")
.Window(w => w.Title("Detaljer"))
)
How can i change the labels on the buttons "update" and "cancel" in the popup window without making a command.edit() button and use the .Text()@(Html.Kendo().PanelBar() .Name("IntroPanelBar") .Items(items => { items.Add() .Text("Getting Started") .Content(@<text> Just some random content </text>); }))
@(Html.Kendo().Grid<Zeus.Models.AnswerGroup>(Model.Groups) .Name("Grid") .Columns(columns => { columns.Bound(p => p.Id); columns.Bound(p => p.QuestionGroupName); }) .Sortable() .Pageable() .ClientDetailTemplateId("detailTemplate") .Events(e => e.DetailInit("onDetailInit")) .Events(e => e.DataBound("dataBound")))<script id="detailTemplate" type="text/kendo-tmpl"> @(Html.Kendo().Grid<Zeus.Models.AnswerDetail>() .Name("answersGrid_#=Id#") .AutoBind(false) .DataSource(ds => ds .Ajax() .ServerOperation(false)).ToClientTemplate() )</script><script type="text/javascript" language="javascript"> function dataBound(e) { this.expandRow(this.tbody.find("tr.k-master-row").first()); } function onDetailInit(e) { var grid = $("#answersGrid_" + e.data.Id).data("kendoGrid"); grid.dataSource.data(e.Groups.Answers); }</script>