In cases where I have a dynamic form with column widths that are too short for one field, is there any way to force the other textfields to take up the same amount of width that its column is taking up? If you look at the sample below, the radiobutton is stretching that first column, but the fields remain the same width.
I am aware that setting a large column width fixes this problem but value maps can be dynamic and have no way of predicting how much space it would need.
I am aware that setting a large column width fixes this problem but value maps can be dynamic and have no way of predicting how much space it would need.
Code:
isc.HLayout.create({ ID:"GridLayout_hLayoutWrap", members:[ isc.DynamicForm.create({ ID:"GridLayout", numCols:8, colWidths:["124","124","124","124","124","124","124","124"], titleOrientation:"top", cellPadding:2, fields:[{ valueMap:{"W":"Work","H":"Home","M":"Mobile","O":"Other"},defaultValue:true,isBoolean:"false",wrap:false,type:"radioGroup",title:"<nobr>phoneType <\/nobr>",width:"*",colSpan:"1",ID:"phoneType",vertical:false,_constructor:"RadioGroupItem"}, {title:"<nobr>Home <\/nobr>",width:"*",colSpan:1,startRow:true,ID:"TextField",_constructor:"TextItem"}, {title:"<nobr>Ext <\/nobr>",width:"*",colSpan:1,ID:"TextField1",_constructor:"TextItem"} ] }) ] });
Comment