Skip to Content

UI5 Javascript - Double-click in cell/field to activate drop-down list

I'm pretty sure I can detect a double click of the mouse in a cell/field of a view/table, but, I would like to emulate the pulldown list of a combobox when the user double-clicks, therefore avoiding having to click on the down-arrow to the right of the cell/field.

Has anyone done this, or know how to achieve this?.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Mar 16, 2017 at 04:05 PM

    haven't seen a use case like this.......

    it might be possible....give it a try with below approach

    In the event handler of doubleclick fire the event for 'loadItems' of ComboBox

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 16, 2017 at 11:37 PM

    I think this behavior is not a good idea as a aspect of UX, because an user can not assume the reaction of their action(double click).

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 17, 2017 at 04:04 PM

    if you have a choice to switch to sap.m.Select control which is available in SAP UI5, for this control you just need to click on it, it will show the list of items and you don't need to click on the arrow mark.

    Best Regards,
    Mahesh

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 24, 2017 at 01:03 PM

    So it seems that this issue is ONLY with the use of Combobox, if you use DropDownBox or Select to display a list of values then you are ONLY allowed to choose an option from the values displayed, whereas the Combobox option displays a list of values, but you can just enter a value in, and it will accept that. So would suggest avoid using it. I'm sure there's a valid use for it, I just can't think of one yet. Anyway, one of the other benefits is that as soon as you click in the field the list of values appears immediately, which, was exactly what I was try to get it to do. ;)

    Oh, and there's no property for Combobox to inhibit manual entry, but there is in other options, and that's defaulted.

    Add comment
    10|10000 characters needed characters exceeded