如何在dojo EnhancedGrid中搜索当前页面中的行

时间:2014-02-23 19:47:54

标签: dojo dojox.grid

我需要为与QueryReadStore绑定的网格构建搜索功能。我尝试使用搜索插件,但我认为如果你的网格是与ItemFileReadStore绑定的话。有人可以帮助如何在QueryReadyStore上实现搜索吗?

1 个答案:

答案 0 :(得分:0)

    var grid_obj = dijit.byId(your_grid_id);
    var grid_row_count = grid_obj.rowCount;
    for(i =0 i<grid_row_count;i++)
    {
       var item = grid_obj.getItem(i); 
    // Then compare for the value
    }

//Note:this is full grid scan,dont use if there is large data.