cancel
Showing results for 
Search instead for 
Did you mean: 

How to set maximum content to combobox in XML?

former_member195820
Participant

Hi all,

I'm writing code in XML. I have written the following code for combobox.

View.XML:

<ComboBox id="cb3" placeholder="Select" visible= "false" items="{ path: '/CCF4Set' }">

<core:Item key="{Costcentre}" text="{Costcentre} - {Text}" />

</ComboBox>

It is working fine.But I have more than 100 items binded to the combobox and I'm not able to display them. Is there any other way to set maximum limit to combobox?

Can someone help me with this?

Accepted Solutions (1)

Accepted Solutions (1)

former_member227918
Active Contributor

Hi,

increase size limit of your oModel, this oModel may be for your combobox (individual) or for whole application. it will work.

oModel.setSizeLimit(1000); // set limit as many records you want to see once

Thanks,

Akhilesh

former_member195820
Participant
0 Kudos

Thanks Akhilesh. It's working now.

Answers (0)