We are seeing some issues with ListGrid.sortByGroupFirst functionality. I'll start with the first problem we can recreate and then may need to provide some other examples after that.
See this example:
http://www.smartclient.com/docs/10.0/a/system/reference/SmartClient_Explorer.html#dataTypes
Use this Code below and try to sort the Area column by clicking on the column header. It sorts one time and then no longer sorts when you click the column header. If you remove the sortByGroupFirst option and try again, it seems to work. So, using sortByGroupFirst is causing some problem here.
See this example:
http://www.smartclient.com/docs/10.0/a/system/reference/SmartClient_Explorer.html#dataTypes
Use this Code below and try to sort the Area column by clicking on the column header. It sorts one time and then no longer sorts when you click the column header. If you remove the sortByGroupFirst option and try again, it seems to work. So, using sortByGroupFirst is causing some problem here.
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:"independence", title:"Nationhood", type:"date"}, {name:"government"}, {name:"area", title:"Area (km²)", type:"float", format:",0"}, {name:"gdp_percap", title:"GDP (per capita)", align:"right", formatCellValue: function (value, record) { var gdpPerCapita = Math.round(record.gdp*1000000000/record.population); return isc.NumberUtil.format(gdpPerCapita, "\u00A4,0.00"); } } ], groupStartOpen:"all", sortByGroupFirst:true, groupByField:"government" })
Comment