function changeSelection(id) { var index = 0; for (var i = 0; i < mcp_liststore.data.length; i++) { if (mcp_liststore.data.get(i).id == id) { index = i; break; } } for (var i = 0; i < mcp_gridlist.store.getCount(); i++) { mcp_gridlist.getSelectionMo…