cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a grid

Former Member
0 Kudos

Hi Friends,

How to create a Grid, not a form or table.

I want a grid to hold about 10 fields.

so :-

f1 v1 f2 v2

f1 v1 f2 v2

f--fields

v--values

I can get it using simple form ,but it doesnot look like a grid.

I need the look and feel of a grid.

Thanks!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Naveen,

you can also use GridLayout as like as Matrixlayout for he transparent container. here you should give column count. That is how many columns the container will show?

for ex: if your grid will show like this:

fi vi f2 v2

f3 v3 f4 v4

set the colcount property to 4.

Former Member
0 Kudos

MatrixLayout is better than GridLayout for this purpose because it provides meaningful spacing between its entries automatically.

Armin

Former Member
0 Kudos

Hi Armin,

if MatrixLayout is better than GridLayout then when and why should we use the Grid, because Using MatrixLayout we can arrange the elements in certain manner which can be done with GridLayout.

regards,

karthik

Former Member
0 Kudos

GridLayout is somehow not needed anymore.

The recommendation is to divide a screen first into rows using RowLayout and to arrange grid sections using a MatrixLayout. And you should avoid nesting of layouts for better rendering performance.

Armin

Former Member
0 Kudos

Armin,

The reality is that on mobile devices GridLayout is the only one that is both supported and rendered correctly...

VS

Former Member
0 Kudos

Mobile devices are somehow not an important part of my "reality"

Thanks for the hint.

Armin

Former Member
0 Kudos

Create a TransparentContainer with MatrixLayout.

Add Labels ("fields") and InputFields ("values"). Set layoutData=MatrixHeadData for each Label that starts a new row. Set f.labelFor=v for each pair (f,v).

That's it.

Armin

former_member182372
Active Contributor
0 Kudos

Hi Naveen,

Check http://searchsap.techtarget.com/searchSAP/downloads/SAPPRESS.pdf Section "7.6 Layout managers"

It will give you the most exhaustive description of how to build a grid in WD.

Best tregards, Maksim Rashchynski.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can use the TableView UI element for this.

REgards,

Rich Heilman

Former Member
0 Kudos

Hi Rich will it help using tableView UI? I mean does it gives a grid with having a table functionality of sort, delete etc?