Hi All,I'm having problems when trying to add a clickable hyperlink to my header template on my grid. The idea is to add a hyperlink with the text of ClientName from the dataitem that will call my controller and pass the ClientCode of the underlying data item.
.Columns(columns =>{ columns.Bound(u => u.ClientName) .ClientGroupHeaderTemplate(Html.ActionLink("\"<#= ClientName#>\"", "blalbalba", "blabla", new { clientCode = "<#= ClientCode #>" }).ToString()); columns.Bound(u => u.Status).Width("50px").Title("Collat").ClientTemplate("<i class='#= Status ? 'fa fa-check fa-3x red-text' : 'fa' #'/>"); columns.Bound(u => u.Quantity).Width("100px"); columns.Bound(u => u.Security).Title("Security"); columns.Bound(u => u.Value).Format("{0:C}") .ClientGroupFooterTemplate("#=kendo.toString(sum, '£0.00') #") .ClientFooterTemplate("#= kendo.toString(sum, '£0.00') #").Width("100px"); columns.Bound(u => u.CollatValue).Format("{0:C}") .ClientGroupFooterTemplate("#=kendo.toString(sum, '£0.00') #") .ClientFooterTemplate("#= kendo.toString(sum, '£0.00') #").Title("Collat. Value").Width("100px");}).NoRecords("No records found").Pageable(pageable => pageable.Refresh(true)).Sortable().Navigatable().AutoBind(true).DataSource(dataSource => dataSource.Ajax().Aggregates(aggregates =>{ aggregates.Add(p => p.Value).Sum(); aggregates.Add(p => p.CollatValue).Sum();}).Group(group => group.Add(x => x.ClientName)).PageSize(100)
cheers