The radiation of relativistic charged particles for the quasiperiodic motion in a transparent medium is considered. For motion of the general kind the differential probability of the process is obtained. For planar motion the spectral intensity of radiation is found. The different cases of radiation in the medium-filled undulators are studied. In particular, the influence of Cherenkov radiation on the undulator one is discussed.