SmartClient Version: v13.1p_2025-07-26/AllModules Development Only (built 2025-07-26)
Chrome on MacOS
Hello, please modify the columnOrder sample like this (I've just added autoFit:"value" to the countryName field):
you'll see that the column width is too narrow, and when you over the header, it will become wider (only the header, not the cells):
Chrome on MacOS
Hello, please modify the columnOrder sample like this (I've just added autoFit:"value" to the countryName field):
Code:
isc.ListGrid.create({
ID: "countryList",
width:500, height:224,
data: countryData,
fields:[
{name:"countryCode", title:"Flag", width:65, type:"image", imageURLPrefix:"flags/24/", imageURLSuffix:".png"},
{name:"countryName", title:"Country", autoFit:"value"},
{name:"capital", 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:130, top:240,
title:"Hide Capitals",
click:"countryList.hideField('capital')"
})
Comment