开发者

Dojo: Get displayed items from an DojoX Grid

开发者 https://www.devze.com 2023-01-22 18:08 出处:网络
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

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

精彩评论

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