Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Custom Field Names issue when dataSource is empty and we want to use addNode method to add nodes and thier children #281
the problem is in this below code
I'm not able to replicate your issue. Here is my example where everything works fine. http://gijgo.com/Temp/91b6e5e4-3700-4165-9f2b-d7e0790a1e75.html
Are you using version 1.8.1? 1.8.1 seems to be working fine.
because the data-id attribute of 'node1' has undefined value
so, in line 620 of tree.js file thrown up one exception.
$tree, $parent.parent().data('id') is undefined, so the result of getById Method is undefined and we can not get children of it.