jQuery UI Widgets Forums Navigation Tree jqxtree drag drop Issue when loading data from json

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • sm
    Participant

    Here is the fiddle link for the issue .
    http://jsfiddle.net/tgb1ecLx/

    Whenever I drag some elemnt from TreeA it is picking the element from TreeB .Somewhere object is getting overridden .Cant we use two trees at a time .

    If there is no respective element in TreeB as in TreeA then TreeA element is getting dragged


    Dimitar
    Participant

    Hello sm,

    Please use another variable for treeB‘s data, e.g.:

    var data2 = [{
        "id": "2",
        "parentid": "1",
        "text": "Tree B Hot Chocolate",
        "value": "$2.3"
    }, {
        "id": "3",
        "parentid": "1",
        "text": "Tree B Peppermint Hot Chocolate",
        "value": "$2.3"
    }, {
        "id": "4",
        "parentid": "1",
        "text": "Tree B Salted Caramel Hot Chocolate",
        "value": "$2.3"
    }, {
        "id": "5",
        "parentid": "1",
        "text": " Tree B White Hot Chocolate",
        "value": "$2.3"
    }, {
        "text": "Tree B Chocolate Beverage",
        "id": "1",
        "parentid": "-1",
        "value": "$2.3"
    }];
    //alert(responseJson);
    //console.log(data);
    source_fact(data2);

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.