cancel
Showing results for 
Search instead for 
Did you mean: 

Change ColCount for dynamic build Group

Former Member
0 Kudos

Hi,

Can somenone tell me how I can change the number of colomns (ColCount) when you create dynamic group element.

Kind Regards,

Richard

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Richard,

This depends on type of layout:

1. For GridLayout you must specify column count via IWDGridLayout.setColCount();

2.For MatrixLayout you have to combine IWDMatrixData / IWDMatrixHeadData for children to achieve effects of columns row -- every head data starts new row, then sequential non-head data forms columns (2,3,4...)

See this for example of GridLayout

Valery Silaev

EPAM Systems

http://www.NetWeaverTEam.com

Former Member
0 Kudos

Hello Valery,

What is the differece between Layout and LayoutData, i mean where do we use both?

regards,

Piyush.

Former Member
0 Kudos

We create Layout for container, and LayoutData for containing children (LayoutData is like cells).

VS

Former Member
0 Kudos

Just to reinstate valery's point,assuming we are creating some dynamic UI inside a container.

You will use the Layout for container..Now when you add UI elements to this container.. each UI element will have some properties.. like alignment etc., whihc have to be set based on the layout. This will become the layout data.