Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
How to obtain dataItem for a parentRecord.
posted

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.

Parents Reply Children
No Data