
dojox.grid.DataGrid - Search for item
This is one way to search a dojox DataGrid for an item.
In this case, the id is used, but other attributes can be searched as well.
function already_in_the_grid(id)
{
return dojo.some(member_store._getItemsArray(),(function(item){if (item.id==member_id) return true}));
}
Print article | This entry was posted by elvis on 03/05/12 at 12:25:00 pm . Follow any responses to this post through RSS 2.0. |