This question is locked. New answers and comments are not allowed.
Hi, I use GroupBy
The Problem is that I want to change ClientGroupHeaderTemplate
And I have to Group it by TypeOrder, because TypeOder is an int so it sort it correctly but
ProductTypeName is a string and it hasto be displayed.
The Problem is that I want to change ClientGroupHeaderTemplate
columns.Bound(o => o.TypeOrder).ClientGroupHeaderTemplate("Order :<#= ProductTypeName #> ").Width(1);ProductTypeName is a string and it hasto be displayed.
@(Html.Telerik().Grid(Model.SelectionProducts) .Name("SelectedProducts").Columns(columns => { columns.Bound(o => o.ProductTypeName).Title("Type").Width(100); columns.Bound(o => o.ProductName).Width(90).Title(Strings.Campaign_ProductName); columns.Bound(o => o.ProductPrice).Width(90).Title(Strings.Campaign_ProductPrice); columns.Bound(o => o.ProductId).Width(1).Title(""); columns.Bound(o => o.ProductTypeId).Width(1).Title(""); columns.Bound(o => o.TypeOrder).ClientGroupHeaderTemplate("Order :<#= Key #> ").Width(1); }).PrefixUrlParameters(false).Scrollable().Groupable(grouping => grouping.Groups(group => group.Add(e => e.TypeOrder)).Visible(false)) .Sortable(sorting => sorting.Enabled(false)) .Footer(true).Selectable().ClientEvents(events => { events.OnRowSelect("onRowSelectedRemoving"); events.OnDataBound("onDataBoundSelected"); events.OnLoad("OnLoad"); events.OnDataBinding("onDataBinding"); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("SelectionClientSide_SelectedProducts", "Campaign", new { area = "Retail", campaignId = Model.Id })) )
//HELP Please