or
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"))
)
H
ow 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
>
public
class
Activity
{
public
string
ActivityId {
get
;
set
; }
public
string
Description {
get
;
set
; }
public
List<Activity> Activities {
get
;
set
; }
}