I'm having trouble understand what fixedColWidths is supposed to be used for. I have two forms, both having colWidths:["240","240","240","240"], width:960, fixedColWidths:false property set. My problem is, with the first one, you can see by using jsConsole that it uses the width specified as 960, whereas the second form grows to 977. When I change the first form's fixedColWidths to true, then it becomes the same width as the second one. What exactly is the difference? I want both forms to behave the same.
Sorry for the "not so clean" code - I didn't want to leave anything out.
Sorry for the "not so clean" code - I didn't want to leave anything out.
Code:
isc.HLayout.create({ID:"hLayoutWrapgroupGrid1",members: [isc.DynamicForm.create({width:960,height:1,fixedColWidths:false,ID:"groupGrid1",name:"groupGrid1", styleName:"fittedSimpleBorder",title:" ",canHover:true,numCols:4, titleSuffix:" ",rightTitlePrefix:" ",requiredTitleSuffix:"*<\/B>",requiredRightTitleSuffix:"*<\/B>", requiredRightTitlePrefix:"<B> ",colWidths:["240","240","240","240"],titleOrientation:"top", fields: [{title:"<nobr>AO ID <\/nobr>",colSpan:"1",width:"*",ID:"aoId",name:"aoId",$cwname:"model.aoId", errorIconSrc:"\/cwf\/r\/cwfv\/error.png",_constructor:"TextItem"},{title:"<nobr>AO Details Info <\/nobr>", colSpan:"2",width:"*",ID:"aoDetailsInfo",name:"aoDetailsInfo",$cwname:"model.aoDetailsInfo",errorIconSrc:"\/cwf\/r\/cwfv\/error.png", _constructor:"TextItem",cwmask:"\\d\\d. ..........................................",hint:"##*\' \'******************************************", showHintInField:true,cwShowHintInField:true},{title:"<nobr>Links to share directory <\/nobr>",showTitle:false,width:"*",colSpan:"1", startRow:true,ID:"a21Label",name:"a21Label",defaultValue:"Links to share directory",wrap:true,_constructor:"StaticTextItem", isFirstFocusable:false},{styleName:"cwfComputedField",showTitle:false,cellStyle:"cwfComputedField",colSpan:"1",width:"*",ID:"String", name:"String",defaultValue:"",startRow:false,_constructor:"LinkItem"}] })],width:960,height:1}); isc.HLayout.create({ID:"hLayoutWrapgroupGrid",top:100,members: [isc.DynamicForm.create({width:960,height:1,fixedColWidths:false,ID:"groupGrid",name:"groupGrid", styleName:"fittedSimpleBorder",title:" ",canHover:true,numCols:4, titleSuffix:" ",rightTitlePrefix:" ",requiredTitleSuffix:"*<\/B>",requiredRightTitleSuffix:"*<\/B>",requiredRightTitlePrefix:"<B> ",colWidths:["240","240","240","240"],titleOrientation:"top",backgroundColor: "yellow", fields: [{title:"Order Header ",isFirstFocusable:false,showSaveValue:false,ID:"orderHeaderHeader1",name:"orderHeaderHeader1",defaultValue:"Order Header",showValidation:"true",_constructor:"HeaderItem"},{title:"<nobr>Order ID <\/nobr>",colSpan:"1",width:"*",ID:"cwOrderId",name:"cwOrderId",$cwname:"model.cwOrderId",showFocused:false,cwTrueDisabled:true, "change":function(){return false;} ,errorIconSrc:"\/cwf\/r\/cwfv\/error.png",_constructor:"TextItem"}, {title:"<nobr>Product Offer Name <\/nobr>",colSpan:"2",width:"*",ID:"prodOfferName",name:"prodOfferName",$cwname:"model.prodOfferName",errorIconSrc:"\/cwf\/r\/cwfv\/error.png",length:50,_constructor:"TextItem"}, {title:"<nobr>Product Offering ID <\/nobr>",colSpan:"1",width:"*",ID:"prodOfferExternalId",name:"prodOfferExternalId",$cwname:"model.prodOfferExternalId",errorIconSrc:"\/cwf\/r\/cwfv\/error.png", cwActualLength:10,type:"cwinteger",_constructor:"TextItem"}]})],width:960,height:1})
Comment