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);
}
精彩评论