jQuery UI Widgets Forums Lists ListBox Context menu on listbox with checkboxes

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

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

  • claus
    Participant

    I am trying to make a listbox with checkboxes for each entry. Now I would like to use drag & drop to reorder elements, I have found a way to do this (see other post). But I also would like to use a context menu on the items, and I can’t find a way to disable (or a workaround to undo) the unchecking/checking of the checkbox if I right click on a item. I would like the rightclick only to activate the context menu and not change the “checked” state. Is this possible?


    Peter Stoev
    Keymaster

    Hi claus,

    Sorry, but there is no way to disable the checking on right or left click.

    Best Regards,
    Peter Stoev

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


    claus
    Participant

    This is a pity. The Listbox with checkboxes also performs inconsistently with the standard browser context menu. Sometimes the checkmark is not changed, sometimes it is changed when trying to open the browser context menu. It seems to depend on how fast the mouse is released, if it is release rapidly the check status changes.

    Anyhow, I guess it would be nice to be able to deactivate right-click checking/unchecking, maybe it even should be default. A user expects a context menu to not modifiy any data if no action from the menu is taken.

    Kind regards, Claus


    claus
    Participant

    Anyway, here is a little workaround: http://jsfiddle.net/clausdenk/xpXb2/

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

You must be logged in to reply to this topic.