The law of photon radiation from electron beams passing through a photonic crystal in the presence of an undulator is considered. The spectral-angular distribution and the time evolution of radiation is found. It is shown that the characteristics of the radiation intensity in time demonstrate oscillations due to the interference between undulator and parametric (quasi-Cherenkov) radiations.