jQuery UI Widgets Forums Navigation Tree Unable to assign a item a second one

This topic contains 2 replies, has 2 voices, and was last updated by  Emanuel 9 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Unable to assign a item a second one #65692

    Emanuel
    Participant

    Hello,

    i have a strange behavior on assigning a item a second time.

    Starting situation: I have a jqxTree with several items like this:

    – apple
    – oracle
    – microsoft

    I drag and drop one item in another like this:

    – apple
    |- microsoft
    – oracle

    That works fine. Now I want that the item (microsoft) would be copied and the copy should be assigned to apple and the original remains in its original position.

    I have implemented the following (simple modified from the sample code ‘drag and drop’):

    $('#treeA').jqxTree({ allowDrag: true, allowDrop: true, height: '300px', width: '220px', 
            dragEnd: function (item, dropItem, args, dropPosition, tree) {
            	$('#treeA').jqxTree('addTo', dropItem, item, true);
            	return false;
            }
        });

    Until then it works but if i drag the microsoft item a second time, the value ‘item’ is null.

    Any suggestions? Thanks in advance.
    Emanuel

    Unable to assign a item a second one #65718

    Dimitar
    Participant

    Hello Emanuel,

    Unfortunately, such implementation is not supported by jqxTree because calling addTo in the dragEnd callback interferes with the proper rendering of the widget.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Unable to assign a item a second one #65729

    Emanuel
    Participant

    Thank you for your answer.

    Best Regards,
    Emanuel

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.