EasyUI Forum
April 23, 2024, 01:50:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error while loading data to the tree  (Read 3051 times)
sergei
Newbie
*
Posts: 1


View Profile
« 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){
var _129=$.data(_126,"tree");
var opts=_129.options;
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: December 12, 2017, 11:43:06 PM »

Make sure that you have created the tree successfully before calling the 'loadData' method.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!