Question

I need build a search functionality for a grid which binds with QueryReadStore. I tried using Search plugin but I think that work if you the grid is bind with ItemFileReadStore . Can someone help how to achieve search on QueryReadyStore?

Was it helpful?

Solution

    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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top