Title: Error while loading data to the tree Post by: sergei on December 12, 2017, 01:17:17 PM Hello,
I`ve got error while loading data to the tree. TypeError: Cannot read property 'options' of undefined↵ at _125 (.../jquery.easyui.min.js:1751:15 The line in my code. It is working on my development site and does not work on production site. Code: $("#idTree").tree('loadData', group.FolderList); Here content of my FolderList. Code: [{"id":28,"text":"Service","state":"closed","attributes":{"TypeID":28,"Type":"Folder","WorkPlaceID":-1},"children":[{"id":34,"text":"NewDoc - Listvalue","state":"","attributes":{"TypeID":34,"Type":"DocType","WorkPlaceID":28},"children":null},{"id":31,"text":"NewDoc - Measure","state":"","attributes":{"TypeID":31,"Type":"DocType","WorkPlaceID":28},"children":null},{"id":32,"text":"NewDoc - Parameters","state":"","attributes":{"TypeID":32,"Type":"DocType","WorkPlaceID":28},"children":null},{"id":71,"text":"NewDoc - TextEditions","state":"","attributes":{"TypeID":71,"Type":"DocType","WorkPlaceID":28},"children":null},{"id":37,"text":"NewDoc - Texts","state":"","attributes":{"TypeID":37,"Type":"DocType","WorkPlaceID":28},"children":null},{"id":65,"text":"ProductApprovals without groups","state":"","attributes":{"TypeID":65,"Type":"DocType","WorkPlaceID":28},"children":null},{"id":62,"text":"Orphaned Approvals","state":"","attributes":{"TypeID":62,"Type":"QBE","WorkPlaceID":28},"children":null},{"id":60,"text":"Orphaned Translation","state":"","attributes": .... .... lines in jquery.easyui.min.js where exception fired. var _129 occurs here undefined. Code: function _125(_126,ul,data,_127,_128){ Title: Re: Error while loading data to the tree Post by: jarry on December 12, 2017, 11:43:06 PM Make sure that you have created the tree successfully before calling the 'loadData' method.
|