Hi,
How can I get the row count for a listGrid which has grouping turned on for some of its columns ?
It seems that ListGrid .data.getLength() differs when the grid data is grouped or not ...
To reproduce, go to http://www.smartclient.com/docs/7.0rc2/a/system/reference/SmartClient_Explorer.html#dynamicGrouping
Paste the following code:
The double-click event handle doesn't produce consistent row count whether data is grouped or not.
Thanks for your help,
How can I get the row count for a listGrid which has grouping turned on for some of its columns ?
It seems that ListGrid .data.getLength() differs when the grid data is grouped or not ...
To reproduce, go to http://www.smartclient.com/docs/7.0rc2/a/system/reference/SmartClient_Explorer.html#dynamicGrouping
Paste the following code:
Code:
isc.ListGrid.create({ ID: "countryList", width:522, height:224, alternateRecordStyles:true, cellHeight:22, dataSource: countryDS, // display a subset of fields from the datasource fields:[ {name:"countryName"}, {name:"government"}, {name:"continent"}, {name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false} ], cellDoubleClick : function(record, rowNum, colNum) { isc.logWarn("tree size : " + this.data.getLength()); }, groupStartOpen:"all", groupByField: 'continent', autoFetchData: true })
Thanks for your help,
Comment