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
How do I add a row and child rows to igTreeGrid?

Hello, I am trying to dynamically add a set of rows with first row as parent, and other rows as child of that parent.

I am doing the following:


I then call a function with this logic:

var grid = $("#grid");
$.each(dataRows, function (index, value) {
    grid.igTreeGridUpdating("addRow", value);

Each value has the primaryKey and foreignKey field set.

However, this seems to add the rows as a flat structure, and does not keep the tree structure.

Is there another method I need to be calling on igTreeGrid?

Parents Reply Children
No Data