X-ray studies of magnetic and structural transitions in iridates