I am using a treeGrid in which data is hierarchically organized. All data rows will be under groups, and, each group can have subgroups and data rows.
When I want to add a group, I am trying to get the ParentRecord of the ActiveRecord and add a new group in the dataItem associated with it.
var parentRecord = grid.ActiveRecord.ParentRecord;
But, the DataItem associated with the ParentRecord is null.
How can I obtain the DataItem of a record in the treeGrid.
I figured this out.
I am using the ActiveRecord.ParentDataRecord attribute.
Previously, I was trying to cast the ActiveRecord.ParentRecord to DataRecord.
Hello Viswanath,
Thank you for sharing your solution. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
If you need any further assistance on the matter, please do not hesitate to let us know.