cancel
Showing results for 
Search instead for 
Did you mean: 

set colCount by run time

Former Member
0 Kudos

Hi,

how is it possible to set the colCount-Value for a groupBox by run time. I tried with the following code:

				
IWDGroup theGroupBox = (IWDGroup) view.getElement("Group");	 		
IWDLayout layout = (IWDGridLayout) theGroupBox.createLayout(IWDGridLayout.class);
layout.setcolCount(5) <-- doesn't work

regards,

Sharam

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I solved the problem with the following piece of code:


IWDGroup theGroupBox = (IWDGroup) view.getElement("Group");	 		
IWDGridLayout layout = (IWDGridLayout) theGroupBox.createLayout(IWDGridLayout.class);
int i = Integer.parseInt(wdContext.currentThumbnailHorizontalElement().getText());
layout.setColCount(i);	    

regards,

Sharam

luciano_leitedasilva
Contributor
0 Kudos

Sharam,

Did you try set a context value?

Regards,

Luciano