Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loadnode not loading child to its parent #216

Open
RG2712 opened this issue Apr 3, 2018 · 0 comments
Open

Loadnode not loading child to its parent #216

RG2712 opened this issue Apr 3, 2018 · 0 comments

Comments

@RG2712
Copy link

RG2712 commented Apr 3, 2018

Below is the code I have written for loading tree data
settings.init(function (_data) {
var data = _data;
settings.data = data;
for (var i = 0; i < _data.length; i++) {
var row = {
id: data[i].Id,
level: data[i].Level,
pid: data[i].PId,
name: data[i].Name,
taskType: data[i].TaskType,
startDate: data[i].StartDate,
endDate: data[i].EndDate
};
var treenode = generateTreeNode(dom_table, row, row.level);
treeData[row.id] = row;
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant