Jan 03, 2013, 2:20 PM
getColumnModel - 2.0? Help...
I had the below function in 1.x - porting my app over to 2.0 and the getColumnModel is breaking - what can I do to the below to make it work in 2.0? Any help would be greatly apreciated as I am up against a tight deadline...
var GetColumnTotal = function (grid, columnIndex) {
var total = 0,
dataIndex = grid.getColumnModel().getDataIndex(columnIndex);
grid.getStore().each(function (r) {
total += parseInt(r.get(dataIndex));
});
return total;
};