Completed
Last Updated: 19 Mar 2020 14:43 by ADMIN
Release R2 2020 (LIB 2020.1.323)
Samuel
Created on: 02 Mar 2020 16:23
Category: GridView
Type: Feature Request
1
RadGridView: The header checkbox ReadOnly property is not synced with the ReadOnly property of the column
The end users should not be able to change the checked state of the header when the column is read only.
1 comment
ADMIN
Hristo
Posted on: 02 Mar 2020 16:28

Hello,

A possible workaround is to handle the ViewCellFormatting event of the grid this way:

private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    GridCheckBoxHeaderCellElement headerCellElement = e.CellElement as GridCheckBoxHeaderCellElement;
    if (headerCellElement != null)
    {
        headerCellElement.CheckBox.ReadOnly = headerCellElement.ColumnInfo.ReadOnly;
    }
}

Regards,
Hristo
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.