Hi all,
we are using: SmartClient Version: v10.0p_2015-05-03/LGPL Development Only (built 2015-05-03).
In the previous SGWT version (4.x) it worked quite well, but with SGWT 5.0 the refreshFields() method on Listgrid doesn't show the previously hidden column (but hides the previously visible one).
Please see the following simple Smartclient example, which reproduces the bug:
Any help with this?
we are using: SmartClient Version: v10.0p_2015-05-03/LGPL Development Only (built 2015-05-03).
In the previous SGWT version (4.x) it worked quite well, but with SGWT 5.0 the refreshFields() method on Listgrid doesn't show the previously hidden column (but hides the previously visible one).
Please see the following simple Smartclient example, which reproduces the bug:
Code:
isc.ListGrid.create({ ID: "countryList", width:500, 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", title:"Capital", showIf:"false"}, {name:"continent", title:"Continent"} ], canReorderFields: true, testCapitalVisible : function (isVisible) { if ('capital' != countryList.getField(2).name) return; countryList.getField(2).hidden = !isVisible; }, }) isc.IButton.create({ ID: "showCapitals", prompt: "Shows the capital column by using listGrid.refreshFields() - BUGY", left:0, top:240, title:"Show Capitals", click:"countryList.testCapitalVisible(true); countryList.refreshFields()" }) isc.IButton.create({ ID: "showCapitals2", prompt: "Shows the capital column by using listGrid.showField() - WORKS OK", left:120, top:240, title:"Show Capitals 2 ", click:"countryList.showField('capital')" }) isc.IButton.create({ ID: "hideCapitals", prompt: "Hides the capital column by using listGrid.refreshFields() - WORKS OK", left:240, top:240, title:"Hide Capitals", click:"countryList.testCapitalVisible(false); countryList.refreshFields()" })
Comment