jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • thomasR
    Member

    Hello Dimitar,
    we found that this solution is not working in all cases.
    When catching endDrag for listbox A with

     $("#listBoxA").jqxListBox({ allowDrop: true, allowDrag: true, source: data1, width: 200, height: 250, theme: theme,
    dragEnd: function (dragItem, dropItem) {
    var dropListId = dropItem.element.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.id;
    if (dropListId == "listBoxA") {
    return false;
    };
    }
    });

    it is not possible to drop to an empty listbox B or within the lower area of box B.
    In all these cases the determined dropListId is the ID of listbox A.

    Trying to catch the complete Event also does not lead to a usable solution because listbox B is never mentioned in these data.

                jQuery("#listBoxA").on('dragEnd', function (event) {
    var args = event.args;
    console.log(event);
    console.log(args);
    });

    With all possibilities we tested with the API it seems not to be possible to determine the corrent target.

    Can you please help again.

    Best Regards
    Thomas


    thomasR
    Member

    Hello Dimitar,
    thank you very much for your support.

    Works like a charm.

    Best Regards
    Thomas


    thomasR
    Member

    Hi Peter,
    can you tell me what’s the missing link here?
    Is it JSON as data source?
    With your demos the callback seems to work. But i found only examples with arrays as input.

    When do you plan to fix this? We are currently evaluating the commercial version for one of our projects. And have to deliver a prototype shortly.

    Best Regards
    Thomas

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