jQuery UI Widgets Forums Angular jqxTree Drag and Drop

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxTree Drag and Drop #111560

    fab.silvereye
    Participant

    When I drag from jqxTree if I create a property “tag” in the node with assigned a my object for example
    treenode = { icon: node.IsDigital ? “\\assets\\images\\DigitalVar.png”: “\\assets\\images\\AnalogVar.png”, label: “node1”, expanded: false,tag:myobject, items: itms};

    I would like in the Ondrag event have this object in the event.args property is it possibile or I can have only the label? I look for event.args tree but I can’t discover my original object. I want link an object for each tree node and in the drag event obtain this object to complete drop on another container, label is too poor information!!

    Best Regards

    jqxTree Drag and Drop #111580

    Hristo
    Participant

    Hello fab.silvereye,

    Please, clarify what you want to achieve.
    By default, if you want to compare with the original array then you could set for each one item the value member.
    Which you could use as an id and after that with an iteration you could check one by one item with the mentioned array.
    You could try this suggestion and if this does not help you then I would like to ask you for more details.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.