Search code examples
javascripthtmloracle-jet

oj-select-one show all list of values in the drop down


By default oj-select-one displays only the first 15 values and then forces the user to search for remainder.

Is there a way to make oj-select-one show all values in the drop down list without having to use search ?

I tried using minimumResultsForSearch as below, this but this does not help.

    <oj-select-one id="select1"  
        options="[[dataProvider]]" 
        value="{{selectVal}}"
        minimumResultsForSearch="50"
        style="max-width:20em">
    </oj-select-one>

I am using the example in http://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=selectOne&demo=dataFiltering


Solution

  • You chose the right attribute but used the wrong syntax. It should be minimum-results-for-search instead of minimumResultsForSearch

    <oj-select-one id="select1"  
        options="[[dataProvider]]" 
        value="{{selectVal}}"
        minimum-results-for-search="50"
        style="max-width:20em">
    </oj-select-one>