If I attempt to data bind the tree after the tree is created the control is never drawn, but if I data bind during the control creation the tree is drawn properly. Any ideas?
Code:
$("#TreeContainer").igTree({ singleBranchExpand: true, parentNodeImageUrl: 'images/directory.png', leafNodeImageUrl: 'images/directory.png', bindings: { textKey: 'Name', valueKey: 'FolderID', childDataProperty: 'ChildFolderCollection' } });
// data binding
$("#TreeContainer").igTree('option', 'dataSourceType', 'json'); $("#TreeContainer").igTree('option', 'dataSource', result.FolderCollection);
Surprise surprise it was an defect that is fixed in the latest service release, but not documented in the release notes.
Hello Lenny,
Thank you for using our community to share your experience with the other members.
It is nice that you handle this with the latest service release.
For any further assistance do not hesitate to contact us.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support