Unplanned
Last Updated: 22 Jun 2020 14:41 by ADMIN
Suresh G
Created on: 22 Jun 2020 14:22
Category: GridView
Type: Bug Report
1
RadGridView: Header check box get checked on the second checked data row
Hi

Note : Issue in Current version of Telerik (2020.1.218.40)

On cheked of GridViewCheckBoxColumn (Multiple rows) in GridView grdFrReview_HeaderCellToggleStateChanged fires and header checkbox get checked. Header checkbox should check only if all check-boxes of current page checked, otherwise header checkbox should not checked. This was working fine in my previous version of Telerik (2018.3.1016.40).

In the screenshot shown i have checked 1st and then 2nd row of grid, you can see its headercheckbox status has been checked.
1 comment
ADMIN
Nadya
Posted on: 22 Jun 2020 14:41

Hello Suresh,

To workaround the issue I can suggest to set the Checked property of the columns after binding the grid as shown below:

 private void Form1_Load(object sender, EventArgs e)
 {
     try
     {
         BindColumns();
         radGridView1.DataSource = FillDatatoGrid();
         GridViewCheckBoxColumn chkSelectAll = (GridViewCheckBoxColumn)this.radGridView1.Columns["SelectAll"];
         chkSelectAll.Checked = Telerik.WinControls.Enumerations.ToggleState.On;
         chkSelectAll.Checked = Telerik.WinControls.Enumerations.ToggleState.Off;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }

I hope this helps.

Regards,
Nadya
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.