Child rows do not update visually when the parent row is expanded in a Hierarchical RadGridView

0 Answers 3 Views
GridView Styling
João
Top achievements
Rank 1
João asked on 28 Jul 2025, 12:00 PM

Hello.

I am developing a form that has a radgrid with hierarchy and in some instances, the parent row makes changes to the child rows and vice versa.
In my case, I have the functionalities below (Among others):

  1. Both the parent and child rows have a "Check" column.
  2. The relation between the 2 is done through an "Id" column which in my DataSource, is a Guid (The column in both templates is a textbox).
  3. Every time a row is checked (Parent or child), the background changes color.
  4. Every time I check a parent row, the corresponding child rows are also checked (Which then change color).
    Same happens if I uncheck the parent row which then unchecks the corresponding child rows and resets the background color.
    This behavior is managed in the CellValueChanged event of the RadGridView.
    Checking and unchecking the child rows according to the parent, is being done directly in the DataSource which in my case is a DataTable. But the same behavior happens if I edit the grid rows directly.
  5. In the parent template, the Check column has the property EnableHeaderCheckBox set to true.
  6. The color rule is managed by a ExpressionFormattingObject added to the ConditionalFormattingObjectList property of the Check column. I also tried to set up the color rules in the Formating events but the problem I will explain below persists. Still, the color is not the only problem.

My problem here is that everything works correctly if I check and uncheck the parent rows individually. Whether they expanded or not. Depending on the check action in the parent row, the child rows update visually both in their "Check" state and in the color rule.



However, if I check/uncheck all the parent columns from the header check box, the child rows do not update visually unless I close the parent row and expand it again or if I click on all rows/scroll down or up to force them to update.
Like in this print for example. The first parent row was expanded when I checked the header check box. It was suppose to check the child rows and update the color. They are checked internally in the datasource.



There are also some issues with the header check in the child rows. In this case, I do not have the EnableHeaderCheckBox = true in the GridViewTemplate but the problem is similar. Checking all the child rows of a certain parent row through the header check, updates the value on the "Chk" column but does not update it visually with the color.

There is also a problem where in some instances if I check all the parent rows through the header check box, their color does not update.
This happens regardless of the parent rows being expanded or not.



I have to click on each one or scroll or expand them to force the visual update.
The problem seems to be related to the actual visual update. I tried multiple things to for the update but none helped. Also tried forcing the rows to expand if they were collapsed not none helped.

This is all I tried.


On all the examples, I checked the data in the datasource and everything is updated correctly. It is just the visuals that are not updating automatically.

To help understand the problem, I attached a little example with a solution similar to what I have, where this issue can be replicated.
I am using Telerik Winforms V2024.4.1113.462.

Thank you in advance for any answer.
João Carvalho

No answers yet. Maybe you can help?

Tags
GridView Styling
Asked by
João
Top achievements
Rank 1
Share this question
or