Skip to Content
author's profile photo Former Member
Former Member

Problem with VBox or Vertical layout

Hi Experts,

I have a page in which I have a subheader containing two combobox for which data is getting populated from models.

But then after I used VBOX/VerticalLayout under Subheader then i am not getting values for second comboBox. Although when i used HBOX or HorizontalLayout both the combobox are working fine.

Please find my view.XML file below:

<core:View xmlns:core="sap.ui.core"


xmlns:l = "sap.ui.layout"

xmlns="sap.m" controllerName="view.View1"


<Page title="Timesheet">


<Label text = "Dhiraj"></Label>



<Toolbar height ="8rem" >


<ComboBox id ="idComboBox" items="{dmodel>/ProductCollection}">

<core:Item key="{dmodel>Productid}" text="{dmodel>Name}" />


<ComboBox id ="idComboBox1" items="{lmodel>/Location}">

<core:Item key="{lmodel>locid}" text="{lmodel>locname}" />









I want to know what is the reason only one combobox is working when i am working with VBOX.

Thank You in advance..


Dhiraj More

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 06, 2015 at 03:00 PM


    try using ListItem instead of Item and run the code, below is the example for that,

    Edit fiddle - JSFiddle



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.