How is it possible to add a fully functional icon button in grids Group Header ?
My approach :
@(Html.Kendo().Grid<ClaimViewModel>()
.Name("dgvClaims")
.Columns(columns =>
{
columns.Command(command => command.Custom("Vorgang hinzufügen").IconClass("save").Click("showDetails")).Width(300);
columns.Bound(p => p.Id).Filterable(false).Visible(false);
@* columns.Bound(p => p.ClaimId).ClientGroupHeaderTemplate(@"<div>Alfred Mustermann</div><div><button name=""textButton"" theme-color=""ThemeColor.Primary"" type=""button"" icon=""arrow-rotate-cw"" on-click=""onClick"">Add Button</button></div>"); *@
columns.Bound(p => p.ClaimId).ClientGroupHeaderTemplate(@"<div>
<div>Alfred Mustermann</div>
<kendo-button name=""textButton"" type=""button"" theme-color=""ThemeColor.Primary"">Add Button</kendo-button>
</div>");
columns.Bound(p => p.VnName).Width(300);
columns.Bound(p => p.ClaimState).Title("Status").Width(100);
columns.Bound(p => p.ClaimnumberInsurance).Title("Schadennummer VU").Width(150);
columns.Bound(p => p.ClaimnumberRisktaker).Title("Schadennummer Risikoträger").Width(150);
columns.Bound(p => p.ClaimFriendlyName).Title("Beschreibung").Width(200);
columns.Bound(p => p.ClaimDate).Title("Schadendatum").Format("{0:dd.MM.yyyy}");
columns.Bound(p => p.ClaimItemReference).Title("Verweis auf Mappeneintrag").Width(200);
columns.Bound(p => p.ClaimItemReferenceType).Title("Eintragstyp").Width(150);
columns.Bound(p => p.ClaimItemRemark).Title("Bemerkungen").Width(150);
})
.Selectable(s => s.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Row))
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.HtmlAttributes(new { style = "height:650px;" })
.Events(events => events.Change("onChangeCustomerGrid"))
.DataSource(dataSource => dataSource.Ajax()