Completed
Last Updated: 26 Aug 2022 10:38 by ADMIN
IT Services
Created on: 10 Feb 2022 20:38
Category: UI for ASP.NET AJAX
Type: Feature Request
0
Custom column group headers should be a built-in feature of the RadGrid.

I suggest to allow developers to customize the GridColumnGroup header. 

Custom column group headers should be a built-in feature of the RadGrid.

1 comment
ADMIN
Rumen
Posted on: 17 Feb 2022 15:00

Hi IT Service,

One possible approach is to add plain HTML in the HeaderText of the ColumnGroup. That way you can render a custom <input type="image"> element in the DOM that can act like an asp:ImageButton.

For instance:

protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    var headerGroups = RadGrid1.MasterTableView.ColumnGroups;
    var group1 = headerGroups.FindGroupByName("Group1");
    group1.HeaderText = "<input type ='image' src='info.png' class='imageButton' onclick='imageButtonClick(this,event);'/>";
}

Best Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.