Skip to Content

Scrollbar for sap.m.Select

How to get a (Edit: vertical) scrollbar in a `sap.m.Select`?

I have a popover, in which I have a dropdown menu ('Select').

The popover has a specific height (15rem), which the dropdown menu shouldn't exceed.

I ideally would like to have a scrollbar dynamically added to the sap.m.select, when it has more than 5 options to select from. How can I achieve this, since there is no such property in the docu.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 26, 2017 at 04:29 AM

    Hi Jakob,

    You can include the dropdown control inside a scroll bar. Set the scroll bar type less than your pop over height and type of scrolling to vertical. Try searching for sap.m.scrollbar in sdk.

    Regards,

    Gowrinath

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 25, 2017 at 01:40 PM

    Hi Jakob ,

    Can you try using maxWidth property of sap.m.select. By default its value is 100%, just reduce it and check that horizontal scroll bar is coming or not.

    thanks

    Viplove

    Add comment
    10|10000 characters needed characters exceeded

    • As sap.m lib is reponsive , so vertical scrollbar comes with container height(in which drop down is placed) and that is automatic. There is nothing like it should come after 5 values of the dropdown

      thanks

      Viplove