Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

arranging the container UI elements in Matrixlayout

Hi All,

Can anybody tell me how to arrange the container children with the matrixlayout like gridlayout.

I have two two UI elements label and inputfield for product and quantity. I want to arrange these elements as below.

Product name : Laptops.

Quantity : 10 .

but am getting the ouput in single line itself. Its not displying in the next line.

I have designed the layout with the following properties.

Root elemnt properties :

Layout : matrixlayout.


stretchedHorizontally : false

strechedvertically : true

Group properties :

layout : MatrixLayout

layoutdata : Matrix data

Layout[Matrixlayout] :

stretchedHorizontally : false

strechedvertically : false

With the above properties everything is displaying in single line. I want to make it in two lines with the matrix layout only.

Can anyone suggest me how to arrange the elements with the layout "MatrixLayout" only.

Its working with the gridlayout. I want to get the same as grid with the MatrisLayout. Is that possible with the matrixlayout ?



Former Member
Former Member replied


yeah it is possible

suppose u have a lable airline and an input ui element

select the layout as matrix layout.

select the input uielement , go to properties , and change the layout data property of it to matrix headdata

then it moves down..

similarly if u select any ui element and set its layout data to matrix data , then it comes beside the matrix head data just like a grid layout with col count 2.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question