我需要为与QueryReadStore绑定的网格构建一个搜索功能。我尝试使用搜索插件,但我认为如果您的网格与 ItemFileReadStore 绑定,则可以工作。有人可以帮助如何在QueryReadyStore上实现搜索吗?
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.