Hi,
I'm seeing a problem trying to use autoFitWidthApproach.
Go to this sample:
http://www.smartclient.com/docs/8.2/a/system/reference/SmartClient_Explorer.html#autofitColumnWidths
Use this code below and, after clicking 'Try it', make the hidden 'C' column visible. When you do, it is only respecting the title width but is not expanding to respect the value width. I've made the grid extra small to illustrate the point. But, even though the grid is small and horizontally scrolling, it should still expand that column to display the contents of the cell values. Is there some additional setting needed to show the cell values in this case? Or, a problem with the "both" setting?
I'm seeing a problem trying to use autoFitWidthApproach.
Go to this sample:
http://www.smartclient.com/docs/8.2/a/system/reference/SmartClient_Explorer.html#autofitColumnWidths
Use this code below and, after clicking 'Try it', make the hidden 'C' column visible. When you do, it is only respecting the title width but is not expanding to respect the value width. I've made the grid extra small to illustrate the point. But, even though the grid is small and horizontally scrolling, it should still expand that column to display the contents of the cell values. Is there some additional setting needed to show the cell values in this case? Or, a problem with the "both" setting?
Code:
isc.ListGrid.create({ ID: "countryList", height:224, width:"20%", alternateRecordStyles:true, autoFitWidthApproach:"both", canSort:false, headerAutoFitEvent:"doubleClick", data: countryData, fields:[ {name:"countryName", title:"Country", autoFitWidth:true }, {name:"countryCode", title:"C", formatCellValue:function(value,record,rowNum,colNum){return value + " testing more width"}, autoFitWidth:true, showIf:"return false"}, {name:"capital", title:"Capital",autoFitWidth:true}, {name:"continent", title:"Continent",autoFitWidth:true} ] })
Comment