Hi there,
I see a potential bug related to using groupByField. You can see it in action in your Feature Explorer.
First, I’m changing a record and then calling refreshCell with groupByField commented out here http://www.smartclient.com/docs/6.5/a/system/reference/SmartClient_Explorer.html#dynamicGrouping
isc.ListGrid.create({
ID: "countryList",
top:0,
width:522, height:224,
alternateRecordStyles:true, showAllRecords:true, cellHeight:22,
dataSource: countryDS,
// display a subset of fields from the datasource
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"government"},
{name:"continent"}
],
groupStartOpen:"all",
//groupByField: 'continent',
dataProperties: {dataArrived:function(startRow,endRow){var record = countryList.getRecord(0);record.countryName += "-test";var rowNum = countryList.getRecordIndex(record);countryList.refreshCell(rowNum,countryList.getColNum("countryName"));}},
autoFetchData: true
})
The call to refreshCell, constructed using getRecordIndex and getColNum for the correct record works just fine. However, on this second try, we’ll re-enable the groupByField and the refreshCell does not work any more.
isc.ListGrid.create({
ID: "countryList",
top:0,
width:522, height:224,
alternateRecordStyles:true, showAllRecords:true, cellHeight:22,
dataSource: countryDS,
// display a subset of fields from the datasource
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"government"},
{name:"continent"}
],
groupStartOpen:"all",
groupByField: 'continent',
dataProperties: {dataArrived:function(startRow,endRow){var record = countryList.getRecord(0);record.countryName += "-test";var rowNum = countryList.getRecordIndex(record);countryList.refreshCell(rowNum,countryList.getColNum("countryName"));}},
autoFetchData: true
})