Skip to Content
0

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

Mar 16, 2017 at 09:26 AM

104

avatar image
Former Member

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?.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Srikanth KV Mar 16, 2017 at 04:05 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 16, 2017 at 11:37 PM
0

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).

Share
10 |10000 characters needed characters left characters exceeded
Mahesh kumar palavalli Mar 17, 2017 at 04:04 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks, I might try that. Will update this post with the results.

0
avatar image
Former Member Mar 24, 2017 at 01:03 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded