Sync the state of select all and select items.