开发者

Creating a summary row in a dojo dataGrid?

I am curious if anyone could explain how I can generate a summary row (totals for eac开发者_如何学JAVAh column or the like) with a dojo dataGrid. As far as I can understand, I need to use onBeforeRow probably, but I've not been successful thus far. A snippet of example code or a link to some reasonable documentation would be fantastic.


inside onBeforeRow use the row index which is sent as an argument, using this rowIndex, grid.getItem(rowIndex) we can get the full data for that row, then you might accumulate some values from this object for displaying average kind of data.

What is the summary you are displaying , Please be more specific

Ah, dont forget that onBeforeRow is on View object not on the Grid...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜