cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Dynamic Transparent Container

Former Member
0 Kudos

Hey.. I am new to Web Dynpro and got couple of queries and put you guys one below.. please do reply and let me knwo the solution.

How to set Streched horizontal property in Transparent Container dynamically?

thanks in advance

- Dhinesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear dinesh

Put the coding after creating transparent container

dynamically. hope it will be very helpful for you

IWDTransparentContainer trans=(IWDTransparentContainer)view.createElement(IWDTransparentContainer.class,"TranF");

trans.createLayout(IWDMatrixLayout.class);

trans.destroyAllChildren();

IWDMatrixLayout gl=(IWDMatrixLayout)trans.createLayout(IWDMatrixLayout.class);

gl.setStretchedHorizontally(false);

Regards

Dhinakar

Answers (2)

Answers (2)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

I have also said the same thing but the layout is grid layout,

Are u confused with the layouts.

Regards,

Vijayakhanna Raman

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

Check this code

1)Create the transparent container

IWDTransparentContainer UIcontainer =(IWDTransparentContainer) view.createElement(IWDTransparentContainer.class,"TransparentContainer1");

2)Create a layout for the transparent container and set the property.

IWDGridLayout glui =

(IWDGridLayout) UIcontainer.createLayout(IWDGridLayout.class);

glui.setColCount(2);

glui.setCellSpacing(3);

glui.setStretchedHorizontally(false);

Hope this helps,

Regards,

Vijayakhanna Raman