문제

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?

도움이 되었습니까?

해결책

    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.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top