jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox Double click event on a list box

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Double click event on a list box #46481

    dev_pepper
    Participant

    Hi,

    I need to generate double click event on a jqListBox..

    I have seen this link http://www.jqwidgets.com/community/topic/double-or-right-click-event/ about double click on a list box.

    It works to me..But if integrate key/value(ajax json) with list box ,It will not be working.

    Here is my example..

    var source =
    { type : “POST”,
    datatype: “json”,
    datafields: [
    { name: ‘itemId’ }, //key
    { name: ‘itemName’ } //value
    ],
    id: ‘id’,
    url: url,

    };
    var dataAdapter = new $.jqx.dataAdapter(source);

    $(“#itemReportAvailableListBox”).jqxListBox({ source: dataAdapter, displayMember: “itemName”, valueMember: “itemId”,
    width: 200, height: 250, theme: theme}});

    $(“#itemReportAvailableListBox .jqx-listitem-element”).dblclick(function () {
    alert(“Double click”);
    });

    Thanks,

    Double click event on a list box #46486

    Peter Stoev
    Keymaster

    Hi dev_pepper,

    Unfortunately, there’s no such event in the jqxListBox’s API. I would suggest you to use the documented API only.

    Best Regards,
    Peter Stoev

    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.