开发者

Dojo: Get displayed items from an DojoX Grid

Is there any way to get all displayed items from an dojox.grid?

We have an Filter with querys, now we need all items开发者_Go百科 displayed in the moment. To get all selected items is no problem with:

    var items   = grid.selection.getSelected();


The following seems to work for me using Chrome (with Dojo 1.6.1):

for (i = 0; i < grid.rowCount; i++)
{ 
  var obj = grid.getItem(i);
  // optionally, add it to the selection:
  // grid.selection.addToSelection(obj);
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜