EasyUI Forum
May 08, 2024, 05:42:03 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tree error on insert a node after some other node  (Read 7540 times)
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« on: January 24, 2014, 05:44:02 AM »

Is this a bug? I'am get a node from a tree, remove the node from tree and then insert the same node data at other position in the tree (not at the end of the tree). After that, the node data is added to the end of the roots tree data. I fetch the tree data with the methode 'getRoots'. Should the note data set at the correct position. On a previous version of EasyUi it works. We use the newst version of EasyUi

Code:
var selectedNode = selectedNode();
var otherNode = findOtherNode();
var newNodeReportFieldsData = [{
id: selectedNode .id,
text: selectedNode .text,
checked: true
}];

$('#reportFieldsTo').tree('remove', selectedNode.target);
$('#reportFieldsTo').tree('insert', { after: otherNode.target, data: newNodeReportFieldsData });
« Last Edit: January 24, 2014, 05:45:45 AM by Stefan B. » Logged
Stefan B.
Full Member
***
Posts: 152


Software Architekt


View Profile Email
« Reply #1 on: January 24, 2014, 06:03:09 AM »

I found the bugfix solution on this post: http://www.jeasyui.com/forum/index.php?topic=2806.0


 
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!