jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox DRAG CHECKBOX

This topic contains 4 replies, has 3 voices, and was last updated by  claus 10 years, 12 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • DRAG CHECKBOX #55225

    edilson88
    Participant

    IF YOU DRAG A CHECKED ITEM IT WILL UNCHECK WHEN YOU RELEASE IT

    DRAG CHECKBOX #55232

    Peter Stoev
    Keymaster

    Hi edilsonamaral,

    Ok, thanks for the feedback.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    DRAG CHECKBOX #56351

    claus
    Participant

    There is a workaround for this, it’s ugly but seems to work:

    var citems;
    // on dragStart, save currently checked items
    $("#name").on('dragStart', function (event) {
      citems = $("#name").jqxListBox('getCheckedItems');
    });
    // restore checked states
    $("#name").on('dragEnd', function (event) {
       $.each(citems,function (index) {
         $("#name").jqxListBox('checkItem', this.label );
       });              
    });
    DRAG CHECKBOX #56356

    Peter Stoev
    Keymaster

    Hey claus,

    The topic is old and the issue is already resolved. Example: http://jsfiddle.net/338L7/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    DRAG CHECKBOX #56414

    claus
    Participant

    OK, thanks, i just realized there was a new version 2 days ago.

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

You must be logged in to reply to this topic.