Hello,
I'm trying to figure out how to change some column display behavior. Here is an example of behavior we want to change:
http://www.smartclient.com/#columnOrder
Use this code:
1. Try it
2. Resize the Country column so that it is as small as possible without clipping any of the text.
3. Right-click Column headers > column > Capital
When Capital is shown, you'll notice the Continent column is automatically expanding and changes width to consume all of the extra space in the grid. How do we configure this grid to not resize the Continent column in response to showing the Capital column?
I'm trying to figure out how to change some column display behavior. Here is an example of behavior we want to change:
http://www.smartclient.com/#columnOrder
Use this code:
Code:
isc.ListGrid.create({ ID: "countryList", width:1000, height:224, alternateRecordStyles:true, data: countryData, fields:[ {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"}, {name:"countryName", title:"Country"}, {name:"capital", width:50,title:"Capital", showIf:"false"}, {name:"continent", title:"Continent"} ], canReorderFields: true }) isc.IButton.create({ left:0, top:240, title:"Show Capitals", click:"countryList.showField('capital')" }) isc.IButton.create({ left:120, top:240, title:"Hide Capitals", click:"countryList.hideField('capital')" })
1. Try it
2. Resize the Country column so that it is as small as possible without clipping any of the text.
3. Right-click Column headers > column > Capital
When Capital is shown, you'll notice the Continent column is automatically expanding and changes width to consume all of the extra space in the grid. How do we configure this grid to not resize the Continent column in response to showing the Capital column?
Comment